Skip to content

Instantly share code, notes, and snippets.

@ddouhine
Created December 16, 2014 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddouhine/3fad00c1c9e58b81b975 to your computer and use it in GitHub Desktop.
Save ddouhine/3fad00c1c9e58b81b975 to your computer and use it in GitHub Desktop.
setuid (4000)
---s------ allow owner rights temporarily (eg: mount)
chmod 4755 :
-rwxr-xr-x
-rwsr-xr-x
setgid (2000)
------s--- allow owner group rights temporarily
chmod 2744 :
-rwxr--r--
-rwsr-Sr--
sticky bit (1000)
---------t only owner can delete file
chmod 1755 :
-rwxr-xr-x
-rwxr-xr-t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment