DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

chgrp(C)


chgrp -- change group ID

Syntax

chgrp [ -R ] group file ...

Description

chgrp changes the group ID of each file to group. A group may be specified by either its name or its ID (a decimal number). The names and corresponding IDs of each group may be found in the file /etc/group (for more details, refer to the group(F) manual page).

chgrp takes the following option:


-R
Recursively change file group IDs. For each file that names a directory, chgrp changes the group ID of the directory and all files in the file hierarchy below it.

Limitations

Only the owner or the super user can change the group ID of a file.

When used to change the group ID of a symbolic link, chgrp automatically follows the link and tries to change the group ID of the linked file. It makes no sense for symbolic links to have their own permissions and ownerships.

Files

/etc/group

See also

chown(C), group(F), passwd(F), chown(S)

Standards conformance

chgrp is conformant with:

ISO/IEC DIS 9945-2:1992, Information technology - Portable Operating System Interface (POSIX) - Part 2: Shell and Utilities (IEEE Std 1003.2-1992);
NIST FIPS 151-2;
AT&T SVID Issue 2;
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992.


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003