Displaying 2 results from an estimated 2 matches for "getprpw".
2003 Oct 14
1
3.7.1p2: HP-UX 11.00 & NIS+ problems
...not allowed because account is
locked
We use NIS+ under HP-UX 11.00. We have very recently changed the root
password. To change the root password under NIS+ we do the following:
# passed
# chkey -p
# keylogin -r
The last command generates a /etc/.rootkey file. Doing the command
'/usr/lbin/getprpw root' says the account is *not* locked.
We did not have any problems using ssh to login as root with OpenSSH 3.7.1p1.
Is this a bug or am I missing something?
Any info will be appreciated.
Thanks,
Steven
--
___ ____________
<<<((__O\ (__&...
2000 Sep 20
1
password aging and account lock checks
...above would not catch it.
long sp_expire; /* # of days from 1/1/70 when account is locked */
If I lock at account with passwd -l sp_expire is still -1. I tried
this on Solaris as well and it seems sp_expire is only for account
expiration.
The solution on HP-UX 10.20 and 11.0 is to use the getprpw(3)
interface.
And:
/* Check password expiry */
if ((spw->sp_lstchg > 0) && (spw->sp_max > 0) &&
(days > (spw->sp_lstchg + spw->sp_max)))
return 0;
If I expire a password with passwd -f:
-f Force user to change password upon next...