User & Permission Management Flashcards
7 cards from real LCA practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 User & Permission Management flashcards as text
Which command displays all groups a user 'eve' belongs to?
Answer: Both B and C are correct
Both 'groups eve' and 'id -Gn eve' list all group memberships for a specified user.
What is the default umask value for regular users on most Linux distributions?
Answer: 0022
The default umask for regular users is typically 0022, giving new files 644 and new directories 755 permissions.
Which command grants user 'frank' the ability to run any command as root via sudo without a password prompt?
Answer: visudo and add 'frank ALL=(ALL) NOPASSWD: ALL'
The correct and safe method is using visudo to edit /etc/sudoers, which validates syntax before saving.
What does the 'x' in the password field of /etc/passwd indicate?
Answer: The password is stored in /etc/shadow
An 'x' in the password field of /etc/passwd means the actual hashed password is stored in the shadowed /etc/shadow file.
A file has ACL permissions. Which command displays the ACL entries for file 'data.txt'?
Answer: getfacl data.txt
getfacl displays the Access Control List entries for a file, including extended ACL permissions beyond standard rwx.
Which numeric UID range is typically reserved for system accounts on Linux?
Answer: 0–999
On most modern Linux distributions, UIDs 0–999 are reserved for system/service accounts, with regular users starting at 1000.
What happens when 'chmod o-r file.txt' is executed?
Answer: Removes read permission from others
The 'o' in chmod symbolic notation refers to 'others', so o-r removes read permission from the others category.