Purpose
Changes the user group of a file or list of files.
Syntax and Description
chgrp usergroup file [file ...]
Table 10-68 lists the syntax options for the chgrp
command.
Table 10-68 Options for the chgrp command
Option | Description |
---|---|
|
Name of the user group. |
|
Name of a file. |
Only the file owner or the Oracle ASM administrator can use this command. If the user is the file owner, then the user must also be either the owner or a member of the group for this command to succeed.
This command accepts a file name or multiple file names separated by spaces.
If you change the user group settings of an open file, then the operation currently running on the file completes using the old user group settings. The new settings take effect when re-authentication is required.
Examples
The following are examples of the chgrp
command that change the Oracle ASM user group of the specified files.