chgrp.1 (2e08522b020e16b9e2ce58588b229f5e03e23abc) chgrp.1 (cc09f59a1e6d909dc7dd6e64a025eee07ed4065d)
1.\" Copyright (c) 1983, 1990, 1993, 1994
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

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

46.Fl R
47.Op Fl H | Fl L | Fl P
48.Oc
49.Op Fl f
50.Op Fl h
51.Ar group
52.Ar files ...
53.Sh DESCRIPTION
1.\" Copyright (c) 1983, 1990, 1993, 1994
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

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

46.Fl R
47.Op Fl H | Fl L | Fl P
48.Oc
49.Op Fl f
50.Op Fl h
51.Ar group
52.Ar files ...
53.Sh DESCRIPTION
54The chgrp utility sets the group ID of the file named by each
54The
55.Nm
56utility sets the group ID of the file named by each
55.Ar file
56operand to the
57.Ar group
58ID specified by the group operand.
59.Pp
60Options:
61.Bl -tag -width Ds
62.It Fl H
63If the
64.Fl R
65option is specified, symbolic links on the command line are followed.
57.Ar file
58operand to the
59.Ar group
60ID specified by the group operand.
61.Pp
62Options:
63.Bl -tag -width Ds
64.It Fl H
65If the
66.Fl R
67option is specified, symbolic links on the command line are followed.
66(Symbolic links encountered in the tree traversal are not followed.)
68(Symbolic links encountered in the tree traversal are not followed).
67.It Fl L
68If the
69.Fl R
70option is specified, all symbolic links are followed.
71.It Fl P
72If the
73.Fl R
74option is specified, no symbolic links are followed.

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

97The
98.Ar group
99operand can be either a group name from the group database,
100or a numeric group ID.
101If a group name is also a numeric group ID, the operand is used as a
102group name.
103.Pp
104The user invoking
69.It Fl L
70If the
71.Fl R
72option is specified, all symbolic links are followed.
73.It Fl P
74If the
75.Fl R
76option is specified, no symbolic links are followed.

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

99The
100.Ar group
101operand can be either a group name from the group database,
102or a numeric group ID.
103If a group name is also a numeric group ID, the operand is used as a
104group name.
105.Pp
106The user invoking
105.Nm chgrp
107.Nm
106must belong to the specified group and be the owner of the file,
107or be the super-user.
108.Pp
109The
108must belong to the specified group and be the owner of the file,
109or be the super-user.
110.Pp
111The
110.Nm chgrp
112.Nm
111utility exits 0 on success, and >0 if an error occurs.
112.Sh COMPATIBILITY
113In previous versions of this system, symbolic links did not have groups.
114.Sh FILES
115.Bl -tag -width /etc/group -compact
116.It Pa /etc/group
117Group ID file
118.El
119.Sh SEE ALSO
120.Xr chown 2 ,
121.Xr fts 3 ,
122.Xr group 5 ,
123.Xr passwd 5 ,
124.Xr symlink 7 ,
125.Xr chown 8
126.Sh STANDARDS
127The
113utility exits 0 on success, and >0 if an error occurs.
114.Sh COMPATIBILITY
115In previous versions of this system, symbolic links did not have groups.
116.Sh FILES
117.Bl -tag -width /etc/group -compact
118.It Pa /etc/group
119Group ID file
120.El
121.Sh SEE ALSO
122.Xr chown 2 ,
123.Xr fts 3 ,
124.Xr group 5 ,
125.Xr passwd 5 ,
126.Xr symlink 7 ,
127.Xr chown 8
128.Sh STANDARDS
129The
128.Nm chgrp
129utility is expected to be POSIX 1003.2 compatible.
130.Nm
131utility is expected to be
132.St -p1003.2
133compatible.