Operating System - HP-UX
1833130 Members
3356 Online
110051 Solutions
New Discussion

Re: setting passwd expiry

 
madhudeepan
Frequent Advisor

setting passwd expiry

how to set password for user that do not expire

5 REPLIES 5
Suraj K Sankari
Honored Contributor

Re: setting passwd expiry

Hi,

/usr/lbin/modprpw -v user1

To Reset the Password Age to Zero

Suraj
madhudeepan
Frequent Advisor

Re: setting passwd expiry

after this command how can i found if the value has set..

when i checked in /etc/passwd, i cant find any changes
Raj D.
Honored Contributor

Re: setting passwd expiry

madhudeepan,

If your sysem is in trusted mode Use below command :

# cd /usr/lbin/ ; modprpw -m exptm=0,lftm=0 username

It will set password expiration to never and lifetime as infinity.



To check :
# cd /usr/lbin ; ./getprpw username
[ Check exmtm and lftm field, should be 0 ]


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Suraj K Sankari
Honored Contributor

Re: setting passwd expiry

Hi,

>>after this command how can i found if the value has set..

#/usr/lbin/getprpw username

For more see the man page of getprpw

Suraj
R.K. #
Honored Contributor

Re: setting passwd expiry

Hi Madudeepan,

>>I have assigned points to 12 of 254 responses to my questions
And that makes about 4.72% ONLY..

Please spend some time assigning points to those who tried assisting you.

Click here for assigning points to your threads:
http://forums13.itrc.hp.com/service/forums/pageList.do?userId=WW262215&listType=unassigned&forumId=1

And keep foruming..
:)
Don't fix what ain't broke