summaryrefslogtreecommitdiff
path: root/sftp.1
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-01-16 23:23:45 +0000
committerDamien Miller <djm@mindrot.org>2019-01-17 11:08:13 +1100
commit60d8c84e0887514c99c9ce071965fafaa1c3d34a (patch)
tree771daf5a0f48b41115daf2b9b552e4e6d10dba7d /sftp.1
parentdbbc7e0eab7262f34b8e0cd6efecd1c77b905ed0 (diff)
upstream: Add "-h" flag to sftp chown/chgrp/chmod commands to
request they do not follow symlinks. Requires recently-committed lsetstat@openssh.com extension on the server side. ok markus@ dtucker@ OpenBSD-Commit-ID: f93bb3f6f7eb2fb7ef1e59126e72714f1626d604
Diffstat (limited to 'sftp.1')
-rw-r--r--sftp.131
1 files changed, 26 insertions, 5 deletions
diff --git a/sftp.1 b/sftp.1
index 7140bc19b..722a34419 100644
--- a/sftp.1
+++ b/sftp.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: sftp.1,v 1.122 2018/11/16 02:30:20 djm Exp $ 1.\" $OpenBSD: sftp.1,v 1.123 2019/01/16 23:23:45 djm Exp $
2.\" 2.\"
3.\" Copyright (c) 2001 Damien Miller. All rights reserved. 3.\" Copyright (c) 2001 Damien Miller. All rights reserved.
4.\" 4.\"
@@ -22,7 +22,7 @@
22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24.\" 24.\"
25.Dd $Mdocdate: November 16 2018 $ 25.Dd $Mdocdate: January 16 2019 $
26.Dt SFTP 1 26.Dt SFTP 1
27.Os 27.Os
28.Sh NAME 28.Sh NAME
@@ -316,31 +316,52 @@ Change remote directory to
316If 316If
317.Ar path 317.Ar path
318is not specified, then change directory to the one the session started in. 318is not specified, then change directory to the one the session started in.
319.It Ic chgrp Ar grp Ar path 319.It Xo Ic chgrp
320.Op Fl h
321.Ar grp
322.Ar path
323.Xc
320Change group of file 324Change group of file
321.Ar path 325.Ar path
322to 326to
323.Ar grp . 327.Ar grp .
328If the
329.Fl h
330flag is specified, then symlinks will not be followed.
324.Ar path 331.Ar path
325may contain 332may contain
326.Xr glob 7 333.Xr glob 7
327characters and may match multiple files. 334characters and may match multiple files.
328.Ar grp 335.Ar grp
329must be a numeric GID. 336must be a numeric GID.
330.It Ic chmod Ar mode Ar path 337.It Xo Ic chmod
338.Op Fl h
339.Ar mode
340.Ar path
341.Xc
331Change permissions of file 342Change permissions of file
332.Ar path 343.Ar path
333to 344to
334.Ar mode . 345.Ar mode .
346If the
347.Fl h
348flag is specified, then symlinks will not be followed.
335.Ar path 349.Ar path
336may contain 350may contain
337.Xr glob 7 351.Xr glob 7
338characters and may match multiple files. 352characters and may match multiple files.
339.It Ic chown Ar own Ar path 353.It Xo Ic chown
354.Op Fl h
355.Ar own
356.Ar path
357.Xc
340Change owner of file 358Change owner of file
341.Ar path 359.Ar path
342to 360to
343.Ar own . 361.Ar own .
362If the
363.Fl h
364flag is specified, then symlinks will not be followed.
344.Ar path 365.Ar path
345may contain 366may contain
346.Xr glob 7 367.Xr glob 7