Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list of unix users 5

Status
Not open for further replies.

Scunningham99

Programmer
Sep 20, 2001
815
GB
Hi

How would I list all unix users including weather password has been set. Can we also include created date and other attributes?

thanks in advance!

Sy UK
 
which version of solaris

under sol 10

"listusers" shows the users

look in the /etc/shadow file

it will list the hashed passwords next to the user
 
logins (List all users)
logins -p (Will list users without a password)
logins -m (List what groups each user is in)
logins -x (All users, groups, home directory, gecos, login shell, password aging -if available-, Locked, No Password, last changed, etc....)
 
New one on me, coffeysm, have a star!

All I ask of you
Is make my wildest dreams come true
 
Uh oh...LOL three stars! I wish all my other advice I gave out was this helpful. LOL
 
Awesome! Have another star.

Also, the command "[tt]passwd -sa[/tt]" will show who has a password set (PS), who's locked (LK), who has no password (NP), and who's not allowed to login (NL). This is a little easier to parse if you're putting it into a script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top