Website Vidya

Linux & Systems / MEDIUM

Linux Permissions and Ownership Test: 100 chmod, chown & ACL Questions

Master Linux file permissions with 100 practice questions on octal/symbolic chmod, chown, chgrp, umask, SUID, SGID, Sticky Bit, and POSIX ACLs.

100Questions
90mDuration
+1Marks / Q
NoneNegative Marks

Linux Permissions and Ownership Comprehensive Assessment

Master the core security layer of the Linux operating system with this 100-question practice test on permissions and file ownership. Whether securing multi-tenant web servers, configuring shared team directories, or auditing sensitive configuration files, this assessment verifies your deep understanding of DAC (Discretionary Access Control) mechanics.

Subject Matter & Access Control Frameworks

The questions cover both standard UNIX permission models and modern enterprise access controls:

  • Standard Read, Write, and Execute Permissions: Numeric (octal) representation (r=4, w=2, x=1) vs symbolic notation (u, g, o, a with +, -, =), directory execute semantics (the traverse permission) vs read semantics, and file write permissions vs directory write permissions.
  • Ownership Management: Transferring user and group ownership with chown (including user:group syntax and recursive -R propagation), and modifying group assignments with chgrp and usermod -aG.
  • Default Permissions & Umask Calculations: How the system umask masks base creation permissions (0666 for files, 0777 for directories), calculating resulting permissions from umasks (0022, 0027, 0077), and configuring persistent umasks in /etc/profile and pam_umask.
  • Special Permissions (SUID, SGID, Sticky Bit): Octal prefixes (4 for SUID, 2 for SGID, 1 for Sticky Bit), SUID security implications on executables (running with owner privileges, e.g., /usr/bin/passwd), SGID on directories ensuring inherited group ownership for team collaboration, and the Sticky Bit preventing unauthorized file deletion in shared directories like /tmp.
  • POSIX Access Control Lists (ACLs): Overcoming traditional owner-group-others limitations using getfacl and setfacl (-m, -x, -b, default ACLs -d), ACL masks, and inheritance behavior.
  • Sudoers Configuration & Security: Safe editing of /etc/sudoers with visudo, user specifications, host specifications, NOPASSWD directives, command restrictions, and privilege escalation audit trails.

Real Production Scenarios

Questions present authentic sysadmin challenges: diagnosing 403 Forbidden web server errors caused by missing parent directory execute bits, configuring collaborative directory shares with SGID and default ACLs, and identifying dangerous SUID binaries that introduce privilege escalation vectors.

Test Architecture

Standardized testing rules & scoring benchmarks

Question Volume 100 questions.
Pass Score 70% pass mark.
Detailed Feedback Comprehensive step-by-step mathematical octal breakdowns and security rationale for every question.
Keep Practicing

Related Quizzes & Challenges

Strengthen your understanding with more interactive technical tests in this domain.

Showing 4 of 8 related tests
Featured Infrastructure PartnerUp to 75% OFF + 3 Months Free

Supercharge Your Linux & Cloud Workloads with Hostinger

Deploy high-speed NVMe KVM VPS, Docker containers, and LiteSpeed-accelerated WordPress servers in under 60 seconds with full root access, dedicated IPv4, and 24/7 technical support.

Pure NVMe SSD StorageFull Root Access & SSHFree Domain & Unlimited SSL99.9% Uptime SLA
Plans from$2.99/mo
Claim Hostinger DealAffiliate link • Special discount applied at checkout