1.
Scenario: SSH Connection Issue
o Question: A user is unable to SSH to a remote server. What could be the possible cause?
o Answer: Several possibilities:
Host is not allowed to SSH to the server.
Direct root login may not be allowed.
AllowUsers or AllowGroup restrictions in the SSH configuration.
2. Scenario: IP Routing Issue
o Question: You can SSH from one Linux box (IP: 192.168.10.12) to another (IP:
192.168.10.11), but not from a Windows box (IP: 192.169.10.29). What’s the problem?
o Answer: Likely an IP routing issue. Check the gateway settings on 192.168.10.12 and
ensure proper connectivity.
3. Scenario: File Permissions
o Question: User root created a file named “secret” with permissions -rwx------. Only root
and another user named “deepak” should access it. How can this be achieved?
o Answer: Set the correct permissions:
o chmod 700 secret
o chown root:deepak secret
4. Scenario: Disk Space Full
o Question: The root partition is full. How would you identify large files and free up space?
o Answer: Use commands like du, df, and find to identify large files and delete
unnecessary ones.
5. Scenario: Service Not Starting
o Question: A critical service (e.g., Apache) is not starting. How would you troubleshoot?
o Answer: Check service logs (/var/log) for errors. Verify configuration files and
dependencies.
6. Scenario: Kernel Panic
o Question: The server experienced a kernel panic. What steps would you take to
diagnose and resolve it?
o Answer: Analyze kernel logs (dmesg), check hardware, and apply relevant patches.
7. Scenario: Crontab Issue
o Question: A scheduled cron job is not running. How would you troubleshoot?
o Answer: Verify the cron syntax, check user permissions, and review system logs.
8. Scenario: Network Configuration
o Question: A server lost network connectivity. How would you troubleshoot?
o Answer: Check network interfaces (ifconfig), routing (ip route), and DNS settings.
9. Scenario: Disk Failure
o Question: A disk failed in a RAID array. How would you replace it without data loss?
o Answer: Identify the failed disk, replace it, and rebuild the RAID using tools like mdadm.
10. Scenario: User Account Lockout
o Question: A user account is locked out due to too many failed login attempts. How
would you unlock it?
o Answer: Use pam_tally2 or faillock to reset the failed login count.