Operating System - HP-UX
1833803 Members
2389 Online
110063 Solutions
New Discussion

difference between getprpw and getprdef

 
SOLVED
Go to solution
Chandra441
Occasional Advisor

difference between getprpw and getprdef

Hi,

I want to know what is the difference between getprpw and getprdef.

I am using hpux 11.31... in trusted mode.

so if i  want to set expwarn value whether i should use modprpw or modprdef?

Thanks in advance

1 REPLY 1
Matti_Kurkela
Honored Contributor
Solution

Re: difference between getprpw and getprdef

[get|mod]prpw reads/modifies the protected password entry of a specific user.

[get|mod]prdef reads/modifies the defaults for all users whose protected password entries don't have an user-specific value for that particular setting.

So, if you set expwarn with modprdef, the new value will be used by all new users created after that point, and those users whose expwarn value has been unchanged from the default setting so far.

If you have previously set a custom expwarn value for some user, and now want his/her account to use the default values, you can do

modprpw -m expwarn=DFT <username>

to make <username> again use the default expwarn value as set by modprdef.

MK