Skip to content

Instantly share code, notes, and snippets.

@kurtschlatzer
Forked from magnetikonline/README.md
Created December 20, 2017 17:23
Show Gist options
  • Select an option

  • Save kurtschlatzer/b6d606ca3b7acf159000d563e61c5738 to your computer and use it in GitHub Desktop.

Select an option

Save kurtschlatzer/b6d606ca3b7acf159000d563e61c5738 to your computer and use it in GitHub Desktop.
Linux umask table.

Linux umask table

Umask is determined by subtracting (binary NOT) from initial masks of:

  • File: 666 rw-rw-rw
  • Directory: 777 rwxrwxrwx
Umask File result Directory result
000 666 rw-rw-rw- 777 rwxrwxrwx
002 664 rw-rw-r-- 775 rwxrwxr-x
022 644 rw-r--r-- 755 rwxr-xr-x
027 666 rw-r----- 750 rwxr-x---
077 666 rw------- 700 rwx------
277 666 r-------- 500 r-x------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment