File permissions

File Permissions (Modes)
- Separate Permissions for User (owner of the file), Group, Other
ls -l -- shows modes
-rwxr-xr-- MEANS THAT THIS IS NOT A DIRECTORY
-rwxr-xr-- User permission of the file (Read, write and execute)
-rwxr-xr-- Groups permissions of the file
-rwxr-xr-- Others (everyone of the system can read the file)
-Root & Owner can change modes
-------------
Changing file permissions
chmod has 2 formats
1.Symbolic
chmod g+w filename (add permission to the group)
chmod o-w filename (deny permission to the others)
chmod ug=rw filename <<--means data-blogger-escaped-for="" data-blogger-escaped-permission="" data-blogger-escaped-strong="">users and group for read/write and NO ACCESS for Others
2.Binary Number
chmod 754 filename
754 means 7-U, 5-G,4-O
7=111, 5=101, 4=100 -->> -rwxr-xr--

Comments

Popular posts from this blog

HAproxy logging

tomcat catalina coyote jasper cluster

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all