File and Directory Permissions Flashcards
Learn how to read and understand directory permissions
Which command is used for changing the permissions of a file or directory?
chmod
What does “ugoa” stands for?
User Category, groups, others, all
What operations can you apply into a permission?
Add, subtract, set permissions
What does rwx stands for?
Read, Write, Execute
What are the symbols that denote file type in permissions?
- -> Regular file
d -> Directory
l -> Symolic link
What is the base 10 value for read permission?
4
What is the base 10 value for write permission?
2
What is the base 10 value for executable permission?
1
What is the base 10 representation of this permission “-rwx——”
700
What is the base 10 representation of this permission “dr–r–r–”
444
is 0700 a valid permission?
Yes
What is the string representation of 177 permission in a symbolic link?
l–xrwxrwx
What is the default permission when creating a directory?
777
What is the default permission when creating a file?
666
Name some common umask configurations?
002, 022, 077, 007