MPE/iX Shell and Utilities Reference Manual, Vol 1

chgrp(1) MPE/iX Shell and Utilities chgrp(1)
NAME
chgrp — change the group ownership of files and/or directories
SYNOPSIS
chgrp [–fR] group pathname ...
DESCRIPTION
chgrp sets the group ID to group for the files and directories named by the pathname argu-
ments. group may be a group name from the group database, or a numeric group
ID.
Options
chgrp accepts the following options:
–f does not issue an error message if chgrp cannot change the group ID. In this case,
chgrp always returns a status of zero.
–R If a pathname on the command line is the name of a directory, chgrp changes the
group
ID
of all files and subdirectories under that directory. If chgrp cannot change
some file or subdirectory under the directory, it continues to try to change the other
files and subdirectories under the directory, but exits with a non-zero status.
DIAGNOSTICS
Possible exit status values are:
0 You specified –f,orchgrp successfully changed the group ownership of all the speci-
fied files and directories.
1 Failure due to any of the following:
— unable to access a specified file
— unable to change the group of a specified file
— encountered a fatal error when you specified –R option
2 Failure due to any of the following:
— the command line contained an unknown option or too few arguments
chgrp did not recognize the specified group
Messages
Message: cannot determine OPEN_MAX: system error
Cause: See syserror(3).
Action: See syserror(3).
1-86 Commands and Utilities