chgrp.1 (97d92980a96a50750844f420cc225ddf918f0699) | chgrp.1 (70423e21c8c1a7852c8fe4be892b6bef2f0af98e) |
---|---|
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 --- 36 unchanged lines hidden (view full) --- 45.Nm chgrp 46.Oo 47.Fl R 48.Op Fl H | Fl L | Fl P 49.Oc 50.Op Fl f 51.Op Fl h 52.Ar group | 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 --- 36 unchanged lines hidden (view full) --- 45.Nm chgrp 46.Oo 47.Fl R 48.Op Fl H | Fl L | Fl P 49.Oc 50.Op Fl f 51.Op Fl h 52.Ar group |
53.Ar files ... | 53.Ar |
54.Sh DESCRIPTION 55The 56.Nm 57utility sets the group ID of the file named by each 58.Ar file 59operand to the 60.Ar group 61ID specified by the group operand. 62.Pp | 54.Sh DESCRIPTION 55The 56.Nm 57utility sets the group ID of the file named by each 58.Ar file 59operand to the 60.Ar group 61ID specified by the group operand. 62.Pp |
63Options: 64.Bl -tag -width Ds | 63The following options are available: 64.Bl -tag -width indent |
65.It Fl H 66If the 67.Fl R 68option is specified, symbolic links on the command line are followed. 69(Symbolic links encountered in the tree traversal are not followed). 70.It Fl L 71If the 72.Fl R --- 30 unchanged lines hidden (view full) --- 103or a numeric group ID. 104If a group name is also a numeric group ID, the operand is used as a 105group name. 106.Pp 107The user invoking 108.Nm 109must belong to the specified group and be the owner of the file, 110or be the super-user. | 65.It Fl H 66If the 67.Fl R 68option is specified, symbolic links on the command line are followed. 69(Symbolic links encountered in the tree traversal are not followed). 70.It Fl L 71If the 72.Fl R --- 30 unchanged lines hidden (view full) --- 103or a numeric group ID. 104If a group name is also a numeric group ID, the operand is used as a 105group name. 106.Pp 107The user invoking 108.Nm 109must belong to the specified group and be the owner of the file, 110or be the super-user. |
111.Pp | 111.Sh DIAGNOSTICS |
112The 113.Nm 114utility exits 0 on success, and >0 if an error occurs. 115.Sh COMPATIBILITY 116In previous versions of this system, symbolic links did not have groups. 117.Sh FILES 118.Bl -tag -width /etc/group -compact 119.It Pa /etc/group | 112The 113.Nm 114utility exits 0 on success, and >0 if an error occurs. 115.Sh COMPATIBILITY 116In previous versions of this system, symbolic links did not have groups. 117.Sh FILES 118.Bl -tag -width /etc/group -compact 119.It Pa /etc/group |
120Group ID file | 120group ID file |
121.El 122.Sh SEE ALSO 123.Xr chown 2 , 124.Xr fts 3 , 125.Xr group 5 , 126.Xr passwd 5 , 127.Xr symlink 7 , 128.Xr chown 8 129.Sh STANDARDS 130The 131.Nm 132utility is expected to be 133.St -p1003.2 134compatible. | 121.El 122.Sh SEE ALSO 123.Xr chown 2 , 124.Xr fts 3 , 125.Xr group 5 , 126.Xr passwd 5 , 127.Xr symlink 7 , 128.Xr chown 8 129.Sh STANDARDS 130The 131.Nm 132utility is expected to be 133.St -p1003.2 134compatible. |