Commit | Line | Data |
---|---|---|
33e3bdbe KM |
1 | .\" Copyright (c) 1983 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
b10ae48f | 5 | .\" @(#)chgrp.1 6.1 (Berkeley) %G% |
33e3bdbe | 6 | .\" |
b10ae48f | 7 | .TH CHGRP 1 "" |
33e3bdbe KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | chgrp \- change group | |
11 | .SH SYNOPSIS | |
12 | .B chgrp | |
b10ae48f | 13 | [ -f -R ] |
33e3bdbe KM |
14 | group file ... |
15 | .SH DESCRIPTION | |
16 | .I Chgrp | |
17 | changes the group-ID of the | |
18 | .I files | |
19 | to | |
20 | .IR group . | |
21 | The group may be either a decimal GID or | |
22 | a group name found in the group-ID file. | |
23 | .PP | |
24 | The user invoking | |
25 | .I chgrp | |
26 | must belong | |
27 | to the specified group and be the owner of the file, or be the super-user. | |
28 | .PP | |
29 | No errors are reported when the | |
30 | .B \-f | |
31 | (force) option is given. | |
b10ae48f KM |
32 | .PP |
33 | When the | |
34 | .B \-R | |
35 | option is given, | |
36 | .I chgrp | |
37 | recursively descends its directory arguments | |
38 | setting the specified group-ID. | |
33e3bdbe KM |
39 | .SH FILES |
40 | /etc/group | |
41 | .SH "SEE ALSO" | |
42 | chown(2), | |
43 | passwd(5), | |
44 | group(5) |