System Security & User Permissions 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 System Security & User Permissions flashcards as text
Which command displays the current user's group memberships?
Answer: groups
The `groups` command lists all groups the current user belongs to.
What does the sticky bit do when set on a directory?
Answer: Allows only the file owner to delete files within it
The sticky bit on a directory restricts file deletion so only the file's owner (or root) can remove it.
Which numeric permission value grants read, write, and execute to the owner only?
Answer: 700
700 gives rwx (7) to the owner and no permissions (0,0) to group and others.
What is the purpose of the /etc/shadow file?
Answer: Holds encrypted user passwords
/etc/shadow stores hashed passwords and password aging information, readable only by root.
Which command changes the group ownership of a file?
Answer: chgrp
`chgrp` changes the group owner of a file or directory.
A file has permissions -rwxr-x---. Which class has no access at all?
Answer: Others
The last three dashes (---) represent 'others', meaning they have no read, write, or execute permissions.
What does the SUID bit do when set on an executable file?
Answer: Runs the file as the file's owner regardless of who executes it
The Set User ID (SUID) bit causes the file to execute with the privileges of its owner rather than the caller.