LPI E C1 - chmod test
LPI Linux Essentials / C1 Knowledge Domain Topic 5: Security and File Permissions Practice Test Questions: 1. You want to modify the permissions of the directory "sensitive-docs" to make it more private. Which command would you use? a) chmod o-rwx sensitive-docs/ b) chmod u-rwx sensitive-docs/ c) chmod a-rwx sensitive-docs/ d) chmod g-rwx sensitive-docs/ /* --------------------- */ -------------------------- Answer 1 Below: -------------------------- /* --------------------- */ Explanation : The command "chmod o-rwx" removes read, write, and execute permissions for others (users who are not the owner or part of the group) on the "sensitive-docs" directory, making it more private. Answer 1: a) chmod o-rwx sensitive-docs/ 2. You need to view the permissions of the directory "top-secret" without displaying its contents. Which command would you use? a) ls -l top-secret/ b) ls -d top-secret/ c) ls -la top-secret/ d) ls -ld top-secret