Linux File Permissions And Chmod Patterns Practice Exam
Question 1 of 50
/etc/apparmor.d/
aa-status
chown user:group path
-R
mount --bind /src /dst
mount -o remount,ro /dst
setfacl -m u:alice:r file
restorecon -Rv path
install -m 600 src dst
chmod +x script
rw-r--r--
find dir -type d -exec chmod 755 {} +; find dir -type f -exec chmod 644 {} +;
rw-------
~/.ssh/id_ed25519
getfacl file
find / -type f -perm -o+w -not -path '/proc/*' -not -path '/sys/*'
getcap binary
/etc/passwd
/etc/shadow
visudo
chattr +i file
chattr -i
chattr +i
find . -type d -exec chmod 755 {} \; -o -type f -exec chmod 644 {} \;
chown -R user:group path
-h
getfacl -R / > acls.bak
setfacl --restore=acls.bak
chattr +a logfile
chmod -R a-w path
chmod --reference=src dst
~/.local/bin
~/.ssh
chgrp -R www-data dir
/tmp
strace -e trace=chmod chmod 755 file
rwx------
sudo
/etc/sudoers
mount | grep ' ro,'
/proc/mounts
find / -perm -4000 -type f 2>/dev/null
lsattr file
rwxr-xr-x
setfacl -m u:alice:r,u:bob:rw,g:devops:rwx file
chmod u+s /usr/bin/passwd
rwxr-xr--
setfacl -b file
chmod g+s shared/
stat -c '%a %U %G %n' file
setcap cap_net_bind_service=+ep /path/binary
./script
chmod 700 file
chmod u=rwx,g=,o= file
setfacl -d -m u:alice:rx dir
chmod u+x file
Question navigator