z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Changing the owner ID or group ID associated with a file

z/OS UNIX System Services User's Guide
SA23-2279-00

The user might need to change the UID or GID for a file. To protect the data in a file from unauthorized users, the system controls who can change the file access:
  • To change the owner (UID) of a file, the superuser can enter a chown command.
  • To change the group (GID) of a file, the superuser or the file owner can enter a chgrp command, specifying either a RACF® group name or a GID. The file owner must have the new group as his group or one of his supplementary groups.

Superuser tasks are discussed in Using the BPX.SUPERUSER resource in the FACILITY class in z/OS UNIX System Services Planning.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014