Quiz — Permissions
Quiz on users, groups, chmod, chown, and sudo
Module 3 Knowledge Check — apply users, bits, and sudo
You mapped UID/GID, read /etc/passwd, set rwx modes, and treated root as a blast radius. These ten APPLY scenarios test defender decisions — not trivia. Think like someone who just got a shell on a box they own.
APPLY: A web app "only worked" after someone started it with sudo and left it running. Compromise of the app now means what?
APPLY: You need a teammate to read deploy-notes.txt but not change it, and you must keep writing. Best mode on a file you own?
APPLY: ls -l /etc/shadow shows -rw-r----- root shadow. Why can your unprivileged account not cat it, even though /etc/passwd is readable?
APPLY: find reports a world-writable backup.sh that root's cron runs nightly. Why is that more than a messy permission?
APPLY: id shows uid=1000(dev) gid=1000(dev) groups=1000(dev),33(www-data). The site's config is 640 root:www-data. Can dev read it?
APPLY: New files in a shared drop folder keep appearing as -rw-rw-rw-. Which quiet setting should you inspect first?
APPLY: True or False: sudo -i is safer than daily GUI browsing as root because it still logs, but leaving that root shell open all afternoon still expands blast radius.
APPLY: Which two are PoLP-aligned Linux permission moves? (Select 2)
APPLY: A junior admin edits /etc/sudoers in gedit, saves a typo, and sudo now says syntax error. What tool would have reduced this risk?
APPLY: True or False: chmod 755 on a script you own typically lets others execute it if they can reach the path, but not overwrite it.