How to Change Special File Permissions in Absolute Mode
If you are not the owner of the file or directory, you must be assigned the Object Access Management rights profile. 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.
Example 1-5 Setting Special File Permissions in Absolute Mode
In this example, the administrator sets the setuid
permission on the dbprog
file.
# chmod 4555 dbprog # ls -l dbprog -r-sr-xr-x 1 db staff 12K May 6 09:29 dbprog
In this example, the administrator sets the setgid
permission on the dbprog2
file.
# chmod 2551 dbprog2 # ls -l dbprog2 -r-xr-s--x 1 db staff 24K May 6 09:30 dbprog2
In this example, the administrator sets the sticky bit on the public_dir
directory.
# chmod 1777 public_dir # ls -ld public_dir drwxrwxrwt 2 jdoe staff 512 May 15 15:27 public_dir