File Permissions

There are 6 permissions in Linux

These are the standard ones Read write execute

File Type Owning User Owning group Other
d (directory) rwx r-x

There are 3 special permissions

Permission effect on directory effect on file
u+s (suid) no effect File executes as the user that owns the file, not as the user that ran the file
g+s (sgid) Files that are created in the directory have a group owner to match the group owner of the directory File executes as the group that owns the file.
o+t (sticky) Users with write access to the directory can remove only files that they own; they cannot remove or force saves to files that other users own no effect

Sticky bit

Permission will appear as a T if the execute permissions is not set for other. If this permission is set it will appear as lower case

SetGid bit

SetUID bit