Change UNIX permissions by using the simple command.
Syntax:
chmod 775 filename or foldername
Example:
chmod 775 test.txt
In the above cmd we are changing the permission of test file to 775 (Read/Write/Execute).
Below is the table of permissions.
UNIX Permissions:
Value Permission Directory Listing
0 No read, no write, no execute ---
1 No read, no write, execute --x
2 No read, write, no execute -w-
3 No read, write, execute -wx
4 Read, no write, no execute r--
5 Read, no write, execute r-x
6 Read, write, no execute rw-
7 Read, write, execute rwx
rwx rwx rwx = 111 111 111
rw- rw- rw- = 110 110 110
rwx --- --- = 111 000 000
and so on...
rwx = 111 in binary = 7
rw- = 110 in binary = 6
r-x = 101 in binary = 5
r-- = 100 in binary = 4
“Knowing others is intelligence; knowing yourself is true wisdom. Mastering others is strength; mastering yourself is true power.” Arvind Toorpu
Thursday, November 5, 2015
Unix Permissions and values
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment