Lab
Ubuntu Server Access Audit and Hardening
A practice exercise in reviewing Linux accounts, limiting admin access, and documenting a server security baseline.
- Ubuntu Server
- Linux
- SSH
- sudo
- Security
Scenario
For this practice exercise, imagine taking over an Ubuntu server with incomplete account notes and unclear admin access. This is a lab, not client work.
Challenge
Without an account and permission review, old accounts and excessive sudo access can go unnoticed. SSH also needs to be secure without locking out the people responsible for the server.
Approach
- List local users, groups, login shells, and sudo rules before making changes.
- Confirm which accounts need admin access and remove permissions that are no longer needed.
- Review SSH settings and test a separate admin login before ending the current session.
- Make one change at a time and keep notes so it’s clear how to undo a mistake.
Verification
Check that the right users can log in and use sudo, and that others cannot. Review the effective SSH settings and keep a before-and-after checklist. Only use these steps on a real server with approval and a recovery plan.