Operating System - HP-UX
1834141 Members
2203 Online
110064 Solutions
New Discussion

Re: help from man page of getprpw

 
newunix
Frequent Advisor

help from man page of getprpw

hi all

after reading the man page of getprpw in lockout values

1 past password lifetime -- how to find past password lifetime.

2 past last login time (inactive account)

3 past absolute account lifetime
7 password is a *

what all this refers to.
4 REPLIES 4
Rita C Workman
Honored Contributor

Re: help from man page of getprpw

The command getprpw displays the information on the protected password database

Those number you mention refer to the bit value that is assigned to denote the lockout "reason" on the account. For example:

... if a password is past it's lifetime it get's locked and the bit is set to "1".

...if a password is unsucessfully attempted above the range allowed then the account is locked and the bit value is set to "4"

... if the password was set to "*" then the bit is set to "7"

Hope that helps,
Rita

Manix
Honored Contributor

Re: help from man page of getprpw

And getprpw /modprpw are used only on trusted
systems to get & modify the password related
values. Trusted systems have /tcb directory, for rest nodes the command passwd would do.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
newunix
Frequent Advisor

Re: help from man page of getprpw

how to set the passwd to *
Manix
Honored Contributor

Re: help from man page of getprpw

just run useradd command and look at the "passwd" field in /etc/passwd file before assigning the password , in guess it should be "*" .

for shadow passwords field is "x"
for trusted passwords field is "encrypted"
HP-UX been always lovable - Mani Kalra