- Login methods (local, SSH)
Users
Discover
cat /etc/passwd | cut -d: -f1– list all usersgrep -vE "nologin|false" /etc/passwd | cut -d: -f1– list all users with login capabilitycat /etc/passwd | cut -d: -f 1,3 | grep -E ':[0-9]{4,}'– OR, using UID >= 1000getent passwd | grep -vE "nologin|false" | cut -d: -f1– list all users with login capability and includes LDAP or NISgrep 'new user:name=username' /var/log/auth.log– when was user createdzgrep 'new user:name=username' /var/log/auth.log– OR, if log have be recycled, checking archivestat /home/username– OR, workaround if home directory hasnt been moved, check Birth detailslastlog -u usernamewhen did user logged lastsudo lastb | grep username– login recordsManage
Groups
- Root access vs sudo
- Permissions & ownership
- Filesystem hierarchy understanding
- Key config and logging
