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

07 May 07 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: , ,

Leave a Comment

You must be logged in to post a comment.