List Login Users from /etc/passwd
enumerationlinuxtool
Summary
Extract accounts with an interactive shell from /etc/passwd to build a list of real login users.
Walkthrough
Identify which local accounts have an interactive shell, since those are the realistic login/privesc targets.
Steps
- Grep
/etc/passwdfor lines ending inshto filter out service accounts that usenologin/false.
Commands
bash
grep sh$ /etc/passwd