you could do this:
put this into a file called userview
Code:
#!/bin/bash
#userview - view a user's credentials
cat /etc/passwd | grep $1
#EOF
Then do this (as root)
Code:
# chmod 755 userview
# mv userview /bin/userview
Then you have a userview command
simply
Code:
$ userview USERNAME
Aren't shell scripts great?