M. Max M. Max - 1 year ago 93
Linux Question

List all Linux User without Systen User

I would like to list all User in Linux without to show systen-user.
How i can make this please only the Username .

For example cut -d: -f1 /etc/passwd i can see all user + system User

Thanks for help

Answer Source

This shows all users with uid less than 999:

awk  -F':' '$3>999 {print $1 " uid: " $3}' /etc/passwd | column -t | grep -v nobody


With cut showing only human users:

cut -d: -f1,3 /etc/passwd | egrep ':[0-9]{4}$' | cut -d: -f1
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download