msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

07 May 2007 Find duplicate usernames in /etc/passwd

Posted by

# cat /etc/passwd | awk -F: '{print $1}' | sort | uniq -c | grep -v 1
# cat /etc/shadow | awk -F: '{print $1}' | sort | uniq -c | grep -v 1
# awk -F: '{ print $1, $5}' /etc/passwd

Tags: , ,

Comments are closed.