Linux System Administration Questions

Operating and maintaining Linux and Unix systems: filesystems and permissions, process and service management, package management and updates, shell and scripting, storage, and network configuration on the host. Covers day-to-day administration, troubleshooting, monitoring and tuning host resource usage (CPU, memory, swap, and I/O), and hardening of Linux servers that underpin most infrastructure. The Linux operator's core skill set.

HardTechnical
24 practiced

You export /srv/export via NFS and observe that root-owned files created on clients appear as 'nobody' on the server. Explain root_squash, all_squash, anonuid/anongid options and how to configure /etc/exports to allow root write access from a specific CIDR while still preventing other hosts from having that access. Describe security considerations and alternatives such as Kerberos-secured NFS.

MediumTechnical
35 practiced

Explain the purpose of SELinux or AppArmor and how mandatory access control differs from traditional Unix discretionary permissions. Show commands to check whether SELinux is enforcing, list file contexts with ls -Z, and find denials logged in audit logs.

MediumTechnical
21 practiced

Design a permissions model for /srv/projects where multiple teams need write access to their own project directories but must not access other teams' data. Use POSIX ACLs and default ACLs to show how you would set this up and how to ensure new files inherit desired ACLs.

HardTechnical
18 practiced

A service running as 'appuser' gets 'Permission denied' opening a config file, even though ls -l shows appuser owns it with read/write permission. The failure is intermittent: it works most of the time, then doesn't. Walk through how you'd systematically narrow down the cause, layer by layer, between the process and the file on disk.

MediumTechnical
18 practiced

Audit for setuid and setgid programs in your infrastructure. Provide a command to find them and describe steps to minimize risk (e.g., removal, replacing with capabilities, using sudo wrappers). Also describe how to test that removing a setuid binary does not break critical functionality.

Unlock Full Question Bank

Get access to all 17 Linux System Administration interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.