CompTIA Linux+ Practice Questions: Permissions

8 free, exam-style CompTIA Linux+ (XK0-006) practice questions covering Permissions. Each question shows the correct answer and a clear explanation. Ready for the real thing? Take the full timed quiz below.

🚀 Take the full CompTIA Linux+ quiz 📘 CompTIA Linux+ study guide

Q1. Which permission allows executing a script?

Explanation: Execute permission (x) is required to run scripts. Learn more.

Q2. What does 'umask 027' set for new files?

Explanation: 027 umask subtracts permissions: 666-027=640 for files. Learn more.

Q3. Which command changes file ownership?

Explanation: chown modifies user/group ownership of files. Learn more.

Q4. What is the purpose of the 'sticky bit'?

Explanation: Sticky bit (t) on directories restricts file deletion to owners. Learn more.

Q5. Which file defines default umask for login shells?

Explanation: UMASK in /etc/login.defs sets default permissions. Learn more.

Q6. Which permission mode gives the owner read, write, and execute while group and others get read and execute?

Explanation: 755 maps to rwx for owner and r-x for group and others. Learn more.

Q7. Which command displays ACLs on a file?

Explanation: getfacl displays access control lists for files and directories. Learn more.

Q8. Which command grants user analyst read and write ACL permissions on report.txt without changing the file owner?

Explanation: setfacl modifies the file access control list and can grant a named user permissions independently of the traditional owner, group, and other bits. Learn more.

More CompTIA Linux+ practice topics