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.

MediumTechnical
18 practiced

As a Systems Administrator, configure sudo so members of group 'ops' can run only /usr/bin/systemctl restart httpd and /usr/sbin/ethtool without a password on all servers. Provide the exact /etc/sudoers lines (preferably with a Cmnd_Alias) and explain how to safely edit and test the configuration.

MediumTechnical
19 practiced

Describe how you would use strace to diagnose a program that fails with 'Permission denied' when opening a config file. Include the strace invocation, how to capture output across forks, how to filter to file-related syscalls, and what specific return values you'll look for in the trace.

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
17 practiced

You are responsible for hardening SSH across a fleet. Provide an actionable plan covering /etc/ssh/sshd_config changes, centralized key or certificate management, rate limiting/brute force protection, use of bastion hosts, monitoring and alerting for suspicious access, and safe rollout steps to avoid locking out administrators.

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.