chflags.1 (61001d7506e3f0a1c252d08ef4d4edf35a3b535d) | chflags.1 (7e81a15205e9d1d64127ec49347430b99897142f) |
---|---|
1.\"- 2.\" Copyright (c) 1989, 1990, 1993, 1994 3.\" The Regents of the University of California. All rights reserved. 4.\" 5.\" This code is derived from software contributed to Berkeley by 6.\" the Institute of Electrical and Electronics Engineers, Inc. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)chflags.1 8.4 (Berkeley) 5/2/95 33.\" $FreeBSD$ 34.\" | 1.\"- 2.\" Copyright (c) 1989, 1990, 1993, 1994 3.\" The Regents of the University of California. All rights reserved. 4.\" 5.\" This code is derived from software contributed to Berkeley by 6.\" the Institute of Electrical and Electronics Engineers, Inc. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)chflags.1 8.4 (Berkeley) 5/2/95 33.\" $FreeBSD$ 34.\" |
35.Dd February 24, 2005 | 35.Dd May 14, 2005 |
36.Dt CHFLAGS 1 37.Os 38.Sh NAME 39.Nm chflags 40.Nd change file flags 41.Sh SYNOPSIS 42.Nm | 36.Dt CHFLAGS 1 37.Os 38.Sh NAME 39.Nm chflags 40.Nd change file flags 41.Sh SYNOPSIS 42.Nm |
43.Op Fl h |
|
43.Oo 44.Fl R 45.Op Fl H | Fl L | Fl P 46.Oc 47.Ar flags 48.Ar 49.Sh DESCRIPTION 50The --- 5 unchanged lines hidden (view full) --- 56.Pp 57The options are as follows: 58.Bl -tag -width indent 59.It Fl H 60If the 61.Fl R 62option is specified, symbolic links on the command line are followed. 63(Symbolic links encountered in the tree traversal are not followed.) | 44.Oo 45.Fl R 46.Op Fl H | Fl L | Fl P 47.Oc 48.Ar flags 49.Ar 50.Sh DESCRIPTION 51The --- 5 unchanged lines hidden (view full) --- 57.Pp 58The options are as follows: 59.Bl -tag -width indent 60.It Fl H 61If the 62.Fl R 63option is specified, symbolic links on the command line are followed. 64(Symbolic links encountered in the tree traversal are not followed.) |
65.It Fl h 66If the 67.Ar file 68is a symbolic link, 69change the mode of the link itself rather than the file to which it points. |
|
64.It Fl L 65If the 66.Fl R 67option is specified, all symbolic links are followed. 68.It Fl P 69If the 70.Fl R 71option is specified, no symbolic links are followed. --- 37 unchanged lines hidden (view full) --- 109.Pp 110.Bl -tag -offset indent -width "nouchg" -compact 111.It Ar nouchg 112clear the user immutable flag (owner or super-user only) 113.It Ar dump 114clear the nodump flag (owner or super-user only) 115.El 116.Pp | 70.It Fl L 71If the 72.Fl R 73option is specified, all symbolic links are followed. 74.It Fl P 75If the 76.Fl R 77option is specified, no symbolic links are followed. --- 37 unchanged lines hidden (view full) --- 115.Pp 116.Bl -tag -offset indent -width "nouchg" -compact 117.It Ar nouchg 118clear the user immutable flag (owner or super-user only) 119.It Ar dump 120clear the nodump flag (owner or super-user only) 121.El 122.Pp |
117Symbolic links do not have flags, so unless the 118.Fl H | 123Unless the 124.Fl H , 125.Fl L , |
119or | 126or |
120.Fl L 121option is set, | 127.Fl h 128options are given, |
122.Nm 123on a symbolic link always succeeds and has no effect. 124The 125.Fl H , 126.Fl L 127and 128.Fl P 129options are ignored unless the --- 36 unchanged lines hidden --- | 129.Nm 130on a symbolic link always succeeds and has no effect. 131The 132.Fl H , 133.Fl L 134and 135.Fl P 136options are ignored unless the --- 36 unchanged lines hidden --- |