How to Change Group Ownership of a File

If you are not the owner of the file or directory, you must be assigned the Object Access Management rights. To change a file that is a public object, you must assume the root role.

For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  1. Change the group ownership of a file.
  2. Verify that the group ownership of the file has changed.
    % ls -l example-file
    -rw-r--r--   1 stacey   scifi   112640 June 20 08:55  example-file

    Also see Enabling Users to Change the Ownership of Their Own Files.