Professional Documents
Culture Documents
Linux Permissions
Linux Permissions
Permission:
It is like security machenism to prevent and allow the users and group for
accessing the file & directories and any command.
************************************************************
Read r 4
Write w 2
Execute x 1
***********************************************************
rwx 7
rw- 6
r-x 5
r-- 4
-wx 3
-w- 2
--x 1
--- 0
***********************************************************
Pair value permission are used for Three member in file & directories
1- Default Permission
2- Customized Permission
***************************************************************
***************************************************************
Note: When Root create any file or dir, then root default Umask value will
automatically decrease from maximam value of F&D
****************************************************************
syntax: # umask
***************************************************************
If you change umask value, it will apply only for upcoming F&D
1- Temporary:
# umask Value
e.g. # umask 002
2- Permanent:
# Vim .bashrc
:wq
****************************************************************