Skip to content

Instantly share code, notes, and snippets.

@KryptikOne
Last active March 28, 2019 17:14
Show Gist options
  • Select an option

  • Save KryptikOne/c435b3ca5894ac374c10687710e005ab to your computer and use it in GitHub Desktop.

Select an option

Save KryptikOne/c435b3ca5894ac374c10687710e005ab to your computer and use it in GitHub Desktop.
Brief Reference of Linux File Permissions - Reference: https://www.pluralsight.com/blog/it-ops/linux-file-permissions
Permission Numbers and Meanings
0 = ---
1 = --x
2 = -w-
3 = -wx
4 = r-
5 = r-x
6 = rw-
7 = rwx
Perm's are broken into 4 sections, so for the following... drwxr-xr-x ... is split like this...
d rwx r-x r-x
Section 1
---------
"d" - indicates a directory.
"-" - indicates a file.
"l" - indicates a link.
Section 2 - (User)
---------
rwx - read, write, and execute permissions for the OWNER of this file/drectory/link.
Section 3 - (Group)
---------
r-x - read, write, and execute permissions for the members of the GROUP owning the file/directory/link.
Section 4 - (World)
---------
r-x - read, write, and execute permissions for other users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment