Workbook 4 File Ownership and Permissions: Chapter 4 Directory Ownerships and Permissions Flashcards
What are the three permission types for directory files and their symbols?
(r)ead
(w)rite
e(x)ecute
What does having the r permission for a directory allow a user to do?
list the content of the directory [23]
What does having the w permission for a directory allow a user to do?
add or remove files in the directory [23]
What does having the w permission for a directory allow a user to do?
“search” for a known file within the directory [23]
Give the command line that outputs the permissions for the directory /etc
ls -ld /etc [23]
What are the default permissions for directories newly created by a normal user?
rwxrwxr-x or 775 [23]
What are the default permissions for a user’s home directory in RHEL?
rwx—— or 700 [23]
Generally, in only which two directories can a normal user create new files?
Home and tmp directory
When are files removed from /tmp?
is not accessed for 10
days [24]
In Linux, what are sub directories named pub generally used for?
to create a permanent, publicly accessible location [24]
If you allow others access to your home directory (to access a pub sub directory, for example),
what should you do to protect your home directory’s sub directories and why?
Close of the sub directory chmod o-rx if not other can guess the path to the file [26]
How are directories identified in a long listing?
At the beginning of the permissions list with the letter d