Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #this shell script will display the passwd in a more elegant way
- echo -e "enter username: \c"
- read logname
- line=`grep $logname /etc/passwd`
- IFS=:
- set $line
- echo "username: $1"
- echo "ID: $3"
- echo "Group ID: $4"
- echo "Comment Field: $5"
- echo "Home Folder: $6"
- echo "Default Shell: $7"
Advertisement
Add Comment
Please, Sign In to add comment