Operating System - HP-UX
1752810 Members
5971 Online
108789 Solutions
New Discussion юеВ

Re: how to find no setting password user account

 
SOLVED
Go to solution
eric wang_2
Frequent Advisor

how to find no setting password user account

how to i could fine those unsetting password "user account" in untrusted mode and trusted mode
4 REPLIES 4
John Guster
Trusted Contributor

Re: how to find no setting password user account

do you mean password with default options?
Dennis Handly
Acclaimed Contributor

Re: how to find no setting password user account

For untrusted you could use:
$ awk -F: '{ print $1, $2 }' /etc/passwd

Then look at the password field for your criteria.
VK2COT
Honored Contributor
Solution

Re: how to find no setting password user account

Hello,

If you are using HP-UX without TCB, we have a
special command for it (actually, very few
people seem to know about it):

# logins -p -d

More details in logins(1M) manual.

As far as TCB is concerned, you might
use indirect method: you can simply
ensure that no users are allowed to have
null passwords (hint: use getprpw(1M)
command and look for "nullpw" entry).

Some other useful commands:

# pwck -sl
# cd /tcb/files/auth && grep "u_pwd=::" */*

Cheers,

VK2COT
VK2COT - Dusan Baljevic
eric wang_2
Frequent Advisor

Re: how to find no setting password user account

i have solved my prolbem with logins -p