| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: chmod.1,v 1.22 2009/03/24 00:10:58 joerg Exp $ | | 1 | .\" $NetBSD: chmod.1,v 1.23 2010/01/22 05:41:36 snj Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1989, 1990, 1993, 1994 | | 3 | .\" Copyright (c) 1989, 1990, 1993, 1994 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to Berkeley by | | 6 | .\" This code is derived from software contributed to Berkeley by |
7 | .\" the Institute of Electrical and Electronics Engineers, Inc. | | 7 | .\" the Institute of Electrical and Electronics Engineers, Inc. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -22,39 +22,39 @@ | | | @@ -22,39 +22,39 @@ |
22 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | 22 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
23 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 23 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
24 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | 24 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
25 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 25 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
26 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 26 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
27 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 27 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
28 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 28 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
29 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 29 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
31 | .\" SUCH DAMAGE. | | 31 | .\" SUCH DAMAGE. |
32 | .\" | | 32 | .\" |
33 | .\" @(#)chmod.1 8.4 (Berkeley) 3/31/94 | | 33 | .\" @(#)chmod.1 8.4 (Berkeley) 3/31/94 |
34 | .\" | | 34 | .\" |
35 | .Dd December 9, 2005 | | 35 | .Dd January 22, 2010 |
36 | .Dt CHMOD 1 | | 36 | .Dt CHMOD 1 |
37 | .Os | | 37 | .Os |
38 | .Sh NAME | | 38 | .Sh NAME |
39 | .Nm chmod | | 39 | .Nm chmod |
40 | .Nd change file modes | | 40 | .Nd change file modes |
41 | .Sh SYNOPSIS | | 41 | .Sh SYNOPSIS |
42 | .Nm | | 42 | .Nm |
43 | .Oo | | 43 | .Oo |
44 | .Fl R | | 44 | .Fl R |
45 | .Op Fl H | Fl L | Fl P | | 45 | .Op Fl H | Fl L | Fl P |
46 | .Oc | | 46 | .Oc |
47 | .Op Fl h | | 47 | .Op Fl fh |
48 | .Ar mode | | 48 | .Ar mode |
49 | .Ar | | 49 | .Ar |
50 | .Sh DESCRIPTION | | 50 | .Sh DESCRIPTION |
51 | The | | 51 | The |
52 | .Nm | | 52 | .Nm |
53 | utility modifies the file mode bits of the listed files | | 53 | utility modifies the file mode bits of the listed files |
54 | as specified by the | | 54 | as specified by the |
55 | .Ar mode | | 55 | .Ar mode |
56 | operand. | | 56 | operand. |
57 | .Pp | | 57 | .Pp |
58 | The options are as follows: | | 58 | The options are as follows: |
59 | .Bl -tag -width Ds | | 59 | .Bl -tag -width Ds |
60 | .It Fl H | | 60 | .It Fl H |
| @@ -63,26 +63,30 @@ If the | | | @@ -63,26 +63,30 @@ If the |
63 | option is specified, symbolic links on the command line are followed. | | 63 | option is specified, symbolic links on the command line are followed. |
64 | (Symbolic links encountered in the tree traversal are not followed.) | | 64 | (Symbolic links encountered in the tree traversal are not followed.) |
65 | .It Fl L | | 65 | .It Fl L |
66 | If the | | 66 | If the |
67 | .Fl R | | 67 | .Fl R |
68 | option is specified, all symbolic links are followed. | | 68 | option is specified, all symbolic links are followed. |
69 | .It Fl P | | 69 | .It Fl P |
70 | If the | | 70 | If the |
71 | .Fl R | | 71 | .Fl R |
72 | option is specified, no symbolic links are followed. | | 72 | option is specified, no symbolic links are followed. |
73 | .It Fl R | | 73 | .It Fl R |
74 | Change the modes of the file hierarchies rooted in the files | | 74 | Change the modes of the file hierarchies rooted in the files |
75 | instead of just the files themselves. | | 75 | instead of just the files themselves. |
| | | 76 | .It Fl f |
| | | 77 | Do not display a diagnostic message or modify the exit status if |
| | | 78 | .Nm |
| | | 79 | fails to change the mode of a file. |
76 | .It Fl h | | 80 | .It Fl h |
77 | If | | 81 | If |
78 | .Ar file | | 82 | .Ar file |
79 | is symbolic link, the mode of the link is changed. | | 83 | is symbolic link, the mode of the link is changed. |
80 | .El | | 84 | .El |
81 | .Pp | | 85 | .Pp |
82 | The | | 86 | The |
83 | .Fl H , | | 87 | .Fl H , |
84 | .Fl L | | 88 | .Fl L |
85 | and | | 89 | and |
86 | .Fl P | | 90 | .Fl P |
87 | options are ignored unless the | | 91 | options are ignored unless the |
88 | .Fl R | | 92 | .Fl R |