Linux file permissions

Uid Gid Sticky     U   G   O
 
rws rws rwt        rwx rwx rwx
 
  4   2   1        421 421 421
  ---------        --- --- ---
          7          7   7   7
bash:# chmod 1770 /export/data

- Would set the sticky bit on /export/data

Set UID bit - When a binary executable file has been given the setuid attribute, normal users on the system who have permission to execute this file gain the privileges of the user who owns the file (commonly root) within the created process.

Set GID bit - The setgid attribute will allow for changing the group based privileges within a process, like the setuid flag does for user based privileges.

The setuid and setgid flags, when set on a directory, have an entirely different meaning. Setting the setgid permission on a directory (chmod g+s) causes new files and subdirectories created within it to inherit its groupID. The setuid permission set on a directory is ignored on UNIX and Linux systems.

The most common use of the sticky bit today is on directories. When the sticky bit is set, only the item's owner, the directory's owner, or the superuser can rename or delete files. Without the sticky bit set, any user with write and execute permissions for the directory can rename or delete contained files, regardless of owner.

Burtronix Banner W3C Banner