Deleted Added
full compact
chmod.1 (139969) chmod.1 (140353)
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

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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.\" @(#)chmod.1 8.4 (Berkeley) 3/31/94
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

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
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.\" @(#)chmod.1 8.4 (Berkeley) 3/31/94
33.\" $FreeBSD: head/bin/chmod/chmod.1 139969 2005-01-10 08:39:26Z imp $
33.\" $FreeBSD: head/bin/chmod/chmod.1 140353 2005-01-16 16:41:59Z ru $
34.\"
35.Dd March 31, 1994
36.Dt CHMOD 1
37.Os
38.Sh NAME
39.Nm chmod
40.Nd change file modes
41.Sh SYNOPSIS

--- 57 unchanged lines hidden (view full) ---

99options are ignored unless the
100.Fl R
101option is specified.
102In addition, these options override each other and the
103command's actions are determined by the last one specified.
104.Pp
105Only the owner of a file or the super-user is permitted to change
106the mode of a file.
34.\"
35.Dd March 31, 1994
36.Dt CHMOD 1
37.Os
38.Sh NAME
39.Nm chmod
40.Nd change file modes
41.Sh SYNOPSIS

--- 57 unchanged lines hidden (view full) ---

99options are ignored unless the
100.Fl R
101option is specified.
102In addition, these options override each other and the
103command's actions are determined by the last one specified.
104.Pp
105Only the owner of a file or the super-user is permitted to change
106the mode of a file.
107.Sh DIAGNOSTICS
107.Sh EXIT STATUS
108.Ex -std
109.Sh MODES
110Modes may be absolute or symbolic.
111An absolute mode is an octal number constructed from the sum of
112one or more of the following values:
113.Pp
114.Bl -tag -width 6n -compact -offset indent
115.It Li 4000

--- 183 unchanged lines hidden (view full) ---

299make a file readable/executable by everyone and writable by the owner only.
300.Pp
301.It Li go=
302clear all mode bits for group and others.
303.Pp
304.It Li g=u-w
305set the group bits equal to the user bits, but clear the group write bit.
306.El
108.Ex -std
109.Sh MODES
110Modes may be absolute or symbolic.
111An absolute mode is an octal number constructed from the sum of
112one or more of the following values:
113.Pp
114.Bl -tag -width 6n -compact -offset indent
115.It Li 4000

--- 183 unchanged lines hidden (view full) ---

299make a file readable/executable by everyone and writable by the owner only.
300.Pp
301.It Li go=
302clear all mode bits for group and others.
303.Pp
304.It Li g=u-w
305set the group bits equal to the user bits, but clear the group write bit.
306.El
307.Sh BUGS
308There's no
309.Ar perm
310option for the naughty bits.
311.Sh COMPATIBILITY
312The
313.Fl v
314option is non-standard and its use in scripts is not recommended.
315.Sh SEE ALSO
316.Xr chflags 1 ,
317.Xr install 1 ,
318.Xr setfacl 1 ,

--- 16 unchanged lines hidden (view full) ---

335symbol
336.Dq t
337which is not included in that standard.
338.Sh HISTORY
339A
340.Nm
341command appeared in
342.At v1 .
307.Sh COMPATIBILITY
308The
309.Fl v
310option is non-standard and its use in scripts is not recommended.
311.Sh SEE ALSO
312.Xr chflags 1 ,
313.Xr install 1 ,
314.Xr setfacl 1 ,

--- 16 unchanged lines hidden (view full) ---

331symbol
332.Dq t
333which is not included in that standard.
334.Sh HISTORY
335A
336.Nm
337command appeared in
338.At v1 .
339.Sh BUGS
340There's no
341.Ar perm
342option for the naughty bits.