Skip to content

Instantly share code, notes, and snippets.

@spdrman
Created June 9, 2018 23:07
Show Gist options
  • Save spdrman/dbd01731ce99d39f07cb608742b66938 to your computer and use it in GitHub Desktop.
Save spdrman/dbd01731ce99d39f07cb608742b66938 to your computer and use it in GitHub Desktop.
Setting Permissions on Linux
U G O
rwx rwx rwx
111 111 111
U = User
G = Group
O = Owner
7 = 111
6 = 110
5 = 101
4 = 100
3 = 011
2 = 010
1 = 001
0 = 000
Therefore:
1. RWX permissions for Owner only is
chmod 007 file_name
2. RW permissions only for User and Group
chmod 660 file_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment