gtpo1m5oOperations

ZFILE chown-Change the Owner and Group of a File or Directory

Use this command to change the user ID (UID), group ID (GID), or both of a file or directory.

Requirements and Restrictions

Format




-R
recursively changes the owner or group for the specified file or directory. If you specify a directory, the owner or group of all files and subdirectories under that directory is changed. If you do not specify this parameter, the owner or group for only the specified file or directory is changed.

newowner
is the user ID (UID) or name of the new owner of the file.

newgroup
is the group ID (GID) or name of the new group of the file.

path
is the path name of the file or directory whose owner or group you are changing.

Additional Information

Examples

In the following example, the user ID and group ID for test.file are changed.

+---------------------------------------------------------------------------------------------+
|User:   ZFILE chown 256:257 test.file                                                        |
|                                                                                             |
|System: FILE0003I 15.26.53 chown 256:2... COMPLETED SUCCESSFULLY. NO OUTPUT TO DISPLAY       |
+---------------------------------------------------------------------------------------------+

In the following example, the user name and group name for test.directory are changed.

+---------------------------------------------------------------------------------------------+
|User:   ZFILE chown -R root:bin test.directory                                               |
|                                                                                             |
|System: FILE0003I 15.26.59 chown -R ro... COMPLETED SUCCESSFULLY. NO OUTPUT TO DISPLAY       |
+---------------------------------------------------------------------------------------------+

Related Information