summaryrefslogtreecommitdiff
path: root/sftp-server.8
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-01-09 15:57:36 +1100
committerDamien Miller <djm@mindrot.org>2013-01-09 15:57:36 +1100
commit502ab0eff1bba68a1d0492a9d9da3616b0301724 (patch)
tree0a918be1edd1bd893e0f0cc845c6dc0c9549e3d3 /sftp-server.8
parent3739c8f0413bc7a90a1fc3a6c723436bd285bf86 (diff)
downloadopenssh-git-502ab0eff1bba68a1d0492a9d9da3616b0301724.tar.gz
- djm@cvs.openbsd.org 2013/01/03 12:54:49
[sftp-server.8 sftp-server.c] allow specification of an alternate start directory for sftp-server(8) "I like this" markus@
Diffstat (limited to 'sftp-server.8')
-rw-r--r--sftp-server.816
1 files changed, 14 insertions, 2 deletions
diff --git a/sftp-server.8 b/sftp-server.8
index bb19c15e..4d15f124 100644
--- a/sftp-server.8
+++ b/sftp-server.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sftp-server.8,v 1.19 2010/01/09 03:36:00 jmc Exp $
+.\" $OpenBSD: sftp-server.8,v 1.20 2013/01/03 12:54:49 djm Exp $
.\"
.\" Copyright (c) 2000 Markus Friedl. All rights reserved.
.\"
@@ -22,7 +22,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 9 2010 $
+.Dd $Mdocdate: January 3 2013 $
.Dt SFTP-SERVER 8
.Os
.Sh NAME
@@ -31,6 +31,7 @@
.Sh SYNOPSIS
.Nm sftp-server
.Op Fl ehR
+.Op Fl d Ar start_directory
.Op Fl f Ar log_facility
.Op Fl l Ar log_level
.Op Fl u Ar umask
@@ -56,6 +57,17 @@ for more information.
.Pp
Valid options are:
.Bl -tag -width Ds
+.It Fl d
+specifies an alternate starting directory for users.
+The pathname may contain the following tokens that are expanded at runtime:
+%% is replaced by a literal '%',
+%h is replaced by the home directory of the user being authenticated,
+and %u is replaced by the username of that user.
+The default is to use the user's home directory.
+This option is useful in conjunction with the
+.Xr sshd_config 5
+.Cm ChrootDirectory
+option.
.It Fl e
Causes
.Nm