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

An Apache process is denied access to a config file after a package update with SELinux enabled. How do you read AVC denials, use audit2allow responsibly to generate policy, decide whether to relabel files or extend policy, and document the change for future upgrades? Provide exact commands you would use to inspect AVC denials.

MediumTechnical
19 practiced

Configure auditd rules to log all sudo executions and failed SSH login attempts with minimal performance impact. Provide sample auditctl or /etc/audit/rules.d rules and explain how to query these entries using ausearch or aureport and how to correlate with journalctl.

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
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.

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.