Operating System - HP-UX
1748170 Members
4310 Online
108758 Solutions
New Discussion юеВ

How to set root password to non-expired in HPUX

 
apple
Super Advisor

How to set root password to non-expired in HPUX

I wanted to set the root password to not expired. i did as per the screen captured. is that way to set the root password to non-expired. attached is my screen captured for your verification. many thanks in advance. hv a nice day
2 REPLIES 2
Robert-Jan Goossens
Honored Contributor

Re: How to set root password to non-expired in HPUX

Hi,
Trusted?
Non expire in number of days?
# /usr/lbin/modprpw -m exptm=0 root

untrusted
# passwd -x 0

http://forums11.itrc.hp.com/service/forums/questionanswer.do;HP-FORUMS-S-WPA-IDX=HSlcFZ78VGhrGlGKdQfJTwDS1mZ0LHBfvL3fvJhhJwKy1FvczWn5!-1259521774!-1205908035?threadId=742444

Regards,
Robert-Jan
kjohnsonm
Advisor

Re: How to set root password to non-expired in HPUX

This command* is incorrect as far as I have seen on my 11.3i system.

 

*

/usr/lbin/modprpw -m exptm=0 root

 

You want 

/usr/lbin/modprpw -m exptm=-1 root

 

check by issuing

passwd -s root

pre and post issuing the above command.  The first command expires your password on the day you issue the command.   -KJ

 

time is a preditor to us all, live now not in the future.