Explanation About Chmod in linux
chmod is the command and system call which is used to change the access permission of file system ( file and directory ).
*references https://en.wikipedia.org/wiki/Chmod
basically chmod is used to give protection for user file system,
we can chose who can access this file system and who doesn't allowed to access file system.
Owner-Group-Other
ls -l# this command is using to show all file system permission# if file system is "directory" type# drwxrwxrwx# if file system is "file" type# -rwxrwxrwx
* d = Directory
* r = Read
* w = Write
* x = Execute
* -R = Rekursif / to change all file system inside Directory
How To Use chmod
chmod -R 000 <File-System-Name># First '0' is for "Owner"# Second '0' is for "Group"# Third '0' is for "Other"
Numerical Permissions
#
1 is for " Execute "
2 is for " Write "
4 is for " Read "
< You can combination Numerical Permissions >
Example:
1 + 2 = 3 ( 3 is for " Execute and Write " )1 + 4 = 5 ( 5 is for " Execute and Read " )2 + 4 = 6 ( 6 is for " Write and Read " )Example How To use chmodchmod -R 700 <File-System-Name># what will we get is: only owner is can " Execute, Write, And Read "
<--End-->
My business Email: ghost087@protonmail.com
Comments
Post a Comment