z/OS UNIX System Services Planning
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Changing the owner or group for a file

z/OS UNIX System Services Planning
GA32-0884-00

An interactive 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 and, optionally, the group, the superuser can enter a chown command. The new owner can be identified with a user ID or a UID. The group, if specified, can be identified with a RACF® group name or a GID.

    The CHOWN.UNRESTRICTED profile allows users to use the chown command to transfer ownership of their own files. SUPERUSER.FILESYS.CHOWN allows users to use chown to change ownership of any file.

  • To change the group owner to a specified GID, the superuser or the file owner can enter a chgrp command. The new group can be identified with a group ID.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014