File Permissions and Ownership Flashcards
7 cards from real 010-160 practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 File Permissions and Ownership flashcards as text
Which file stores the mapping between usernames and UIDs on a Linux system?
Answer: /etc/passwd
/etc/passwd contains user account information including username-to-UID mappings.
A script has permissions -rwxr-xr-x. A user in the file's group runs it. What can they do?
Answer: Execute the script
The group permissions are r-x, which includes execute, so group members can run the script.
What does 'chown alice:developers report.txt' accomplish?
Answer: Sets owner to alice and group to developers
The user:group syntax in chown sets both the owner (alice) and the group (developers) simultaneously.
Which symbolic chmod expression removes all permissions for others?
Answer: Both A and B
Both 'o=' (assign nothing) and 'o-rwx' (remove all) result in no permissions for others.
How can you view the groups a user belongs to?
Answer: All of the above
All three commands can show group membership: 'groups', 'id', and inspecting /etc/group all work.
A directory has permissions drwx------. What can a non-owner, non-root user do with it?
Answer: Nothing — they cannot read, write, or enter it
With no permissions for group or others (------), non-owners have no access to the directory at all.
What is the purpose of the /etc/group file?
Answer: Maps group names to GIDs and lists group members
/etc/group maps group names to GIDs and lists the supplementary members of each group.