chgrp.1 (bfd34a4a6037d50f81f6ccc655d65b3f10840cd7) | chgrp.1 (2e08522b020e16b9e2ce58588b229f5e03e23abc) |
---|---|
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 --- 33 unchanged lines hidden (view full) --- 42.Nd change group 43.Sh SYNOPSIS 44.Nm chgrp 45.Oo 46.Fl R 47.Op Fl H | Fl L | Fl P 48.Oc 49.Op Fl f | 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 --- 33 unchanged lines hidden (view full) --- 42.Nd change group 43.Sh SYNOPSIS 44.Nm chgrp 45.Oo 46.Fl R 47.Op Fl H | Fl L | Fl P 48.Oc 49.Op Fl f |
50.Op Fl h |
|
50.Ar group 51.Ar files ... 52.Sh DESCRIPTION 53The chgrp utility sets the group ID of the file named by each 54.Ar file 55operand to the 56.Ar group 57ID specified by the group operand. --- 14 unchanged lines hidden (view full) --- 72.Fl R 73option is specified, no symbolic links are followed. 74.It Fl R 75Change the group ID for the file hierarchies rooted 76in the files instead of just the files themselves. 77.It Fl f 78The force option ignores errors, except for usage errors and doesn't 79query about strange modes (unless the user does not have proper permissions). | 51.Ar group 52.Ar files ... 53.Sh DESCRIPTION 54The chgrp utility 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. --- 14 unchanged lines hidden (view full) --- 73.Fl R 74option is specified, no symbolic links are followed. 75.It Fl R 76Change the group ID for the file hierarchies rooted 77in the files instead of just the files themselves. 78.It Fl f 79The force option ignores errors, except for usage errors and doesn't 80query about strange modes (unless the user does not have proper permissions). |
81.It Fl h 82If the file is a symbolic link, the group ID of the link itself is changed 83rather than the file that is pointed to. |
|
80.El 81.Pp | 84.El 85.Pp |
82Symbolic links don't have groups, so unless the 83.Fl H 84or 85.Fl L 86option is set, 87.Nm chgrp 88on a symbolic link always succeeds and has no effect. | |
89The 90.Fl H , 91.Fl L 92and 93.Fl P 94options are ignored unless the 95.Fl R 96option is specified. --- 11 unchanged lines hidden (view full) --- 108.Nm chgrp 109must belong to the specified group and be the owner of the file, 110or be the super-user. 111.Pp 112The 113.Nm chgrp 114utility exits 0 on success, and >0 if an error occurs. 115.Sh COMPATIBILITY | 86The 87.Fl H , 88.Fl L 89and 90.Fl P 91options are ignored unless the 92.Fl R 93option is specified. --- 11 unchanged lines hidden (view full) --- 105.Nm chgrp 106must belong to the specified group and be the owner of the file, 107or be the super-user. 108.Pp 109The 110.Nm chgrp 111utility exits 0 on success, and >0 if an error occurs. 112.Sh COMPATIBILITY |
116Previous versions of the 117.Nm chgrp 118utility changed the group of symbolic links specified on the command 119line. 120In this system, symbolic links do not have groups. | 113In previous versions of this system, symbolic links did not have groups. |
121.Sh FILES 122.Bl -tag -width /etc/group -compact 123.It Pa /etc/group 124Group ID file 125.El 126.Sh SEE ALSO 127.Xr chown 2 , 128.Xr fts 3 , 129.Xr group 5 , 130.Xr passwd 5 , 131.Xr symlink 7 , 132.Xr chown 8 133.Sh STANDARDS 134The 135.Nm chgrp 136utility is expected to be POSIX 1003.2 compatible. | 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 128.Nm chgrp 129utility is expected to be POSIX 1003.2 compatible. |