Basic Premission
Basic Premission
Basic Premission
permission.
1. Basic Permission
2. Special Permission
3. Access Control List (ACL) Permission
Linux basic file permission is very simple and flexible to apply.
#ls -l /notes.txt
Permission
Link
Owner
Group owner
Size of file
Date & time of file creation
Name of file
#ls -ld /india
There are three permissions groups:
Owner
Group
Other
Permission Description
Write (w) modify the file contents. modify the contents of a directory.
1 Execute --x
2 Write -w-
3 Execute + Write -wx
4 Read r--
5 Read + Execute r-x
eg.
#chown ajay /notes.txt
Syntax:
#chgrp <group name> <file/directory name>
eg.
#chgrp ibmgrp /notes.txt
r (read) = 4
w (write) = 2
x (execute) = 1