Created
June 9, 2018 23:07
-
-
Save spdrman/dbd01731ce99d39f07cb608742b66938 to your computer and use it in GitHub Desktop.
Setting Permissions on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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