Operating System - HP-UX
1753718 Members
6001 Online
108799 Solutions
New Discussion юеВ

Re: how to find users without a password

 
SOLVED
Go to solution
Quark
Valued Contributor

how to find users without a password

Hi,

is there a way to find all users on a trusted system that have no password (they can logon without a password) without having to logon one by one to check (manually)?

With kind regards,

Kris
5 REPLIES 5
Antonio Cardoso_1
Trusted Contributor
Solution

Re: how to find users without a password

Kris,

logins -x

will report you this information.

Such users will have "NP" as password status ("PS" for valid password)
ex with valid password:
user1 10000 ftponly 10000
/home/user1/./
/usr/bin/false
PS 040506 0 182 7
RAC_1
Honored Contributor

Re: how to find users without a password

man logins
logins -pu
There is no substitute to HARDWORK
RAC_1
Honored Contributor

Re: how to find users without a password

man logins
logins -pu
logins -p
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: how to find users without a password

Hi Kris,

You can use "logins". Check the man page for more information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arturo Galbiati
Esteemed Contributor

Re: how to find users without a password

Hi Kris,
logins -p if you are root
otherwise on HPUX11i the users with the password disabled (they are using ssh) have !! in the /etc/passwd after the name, i.e.:
user:!!:

HTH,
Art