8.9 Flashcards
letter abriviation r, octal value 4 , open and read file
Read
letter abricfiation w, octal value 2, edit the file and save the changes
write
x abbriviation, ocatal value 1, Execute the file, if it’s a program file or a shell script (must be used in conjunction with the read permission)
execute
-rwxrw-r–
-rwx equates to 4+2+1 user
7
-rwxrw-r–
rw-, 4+2, group, equates to
6
-rwxrw-r–
r–, 4 other
4
View a long listing of files and directories. A long listing displays the permissions assigned to files and directories (among other information)
ls -l
Change the permissions for the specified file.
entity+permission adds a permission for a user, group, or other to a file or directory.
entity-permission removes a permission for a user, group, or other from a file or directory.
entity=permission sets the permission equal to the permission specified for a user, group, or other for a file or directory.
decimal_value sets the permissions for the file according to the numbers represented for each mode entity.
-R sets permissions recursively.
chmod
For each file, getfacl displays the file name, owner, the group, and the Access Control List (ACL). If a directory has a default ACL, getfacl also displays the default ACL. Non-directories cannot have default ACLs.
getfacl file
This utility sets Access Control Lists (ACLs) of files and directories.
setfactfile
The value used to restrict the permissions for a file or directory.
umask
umask calculation
666 for files Binary
777 for directories binary
for files rw-rw-rw-
for directories rwxrwxrwx
default permission
022 files binary
022 files directories
—-w–w- file abreviation for files
—-w–w- file abreviation for direcotries
Umask (minus)