Pete's Linux Advent Calendar 2008
The 10th day
When Usernames look like Passwords (II)
If you are working in an environemnt where usernames give no indication
to the person it belongs to, you may find it useful to get the real
name to a given username:
getent passwd | awk -F: '$1 == u {print $5}' u=user