1834499 Members
2874 Online
110068 Solutions
New Discussion

Password

 
SOLVED
Go to solution
Sanjiv Sharma_1
Honored Contributor

Password

In an HP-UX 11.11 system I need to ensure that "All accounts that can be accessed as a user must have passwords". How do I check/ensure that? Thanks in advnace.
Everything is possible
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Password

Run the "logins -x" command. The 4th line of output for each users contains a password status field. The value will be "PS" (Password), "LK" (Locked), or "NP" (No Password). Man logins for details.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: Password

Or you can run:

logins -p

Shows all logins with no passwords. You might also run:

logins -d

to see if there are duplicates - especially UID 0 which is root.


Bill Hassell, sysadmin