cancel
Showing results for 
Search instead for 
Did you mean: 

Root password expiry

SOLVED
Go to solution
bharath_hanuma
Regular Advisor

Root password expiry

Hi All,

Can anyone tell me how to keep the root password as "never expires" under HP-UX 11.11

Regards
Bharath
9 REPLIES
SoorajCleris
Honored Contributor
Solution

Re: Root password expiry

Hi,

Use SAM and modify

Regards,
sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
R.K. #
Honored Contributor

Re: Root password expiry

Trusted or non-trusted?
Don't fix what ain't broke
R.K. #
Honored Contributor

Re: Root password expiry

For non-trusted:

go to SAM
- Accounts for Users and Groups
-
- Actions
- Modify Security Policies
- select Password Aging Policies
- modify it

or

# passwd -x 0 root
Don't fix what ain't broke
Sunny123_1
Esteemed Contributor

Re: Root password expiry

Hi

Use Sam For this.


Regards
Sunny
bharath_hanuma
Regular Advisor

Re: Root password expiry

Hi All,

Is there a way I can do this through commands without going to SAM. Also let me know in my server shadow file is missing, whether it will cause any problem in future.

Thanks and Regards
Bharath
R.K. #
Honored Contributor

Re: Root password expiry

Hi Again,

I guess it is :
# passwd -x 0 root


The /etc/shadow file is created from the /etc/passwd file by the pwconv command. It is for security only. No problem if it is not there.
Don't fix what ain't broke
Hakki Aydin Ucar
Honored Contributor

Re: Root password expiry

Hi,

Logon to root and issue:
# passwd
Old-pswd ..
New-pswd ..

As far as I know, password already never expires by default setting.
Victor Fridyev
Honored Contributor

Re: Root password expiry

Edit /etc/passwd and look at the second field of the root user
Passwords with expiration date looks like that:
W5LFnAsUoXL72,B/TU
The part after coma defines expiration date.
Remove it and the password:
W5LFnAsUoXL72
will never be expired

HTH
Entities are not to be multiplied beyond necessity - RTFM
Siju Jose_1
Frequent Advisor

Re: Root password expiry

Hello

On a trusted system you could try the following

/usr/lbin/modprpw -l -m mintm=0,exptm=0,expwarn=0,lftm=0 root

Regards
Siju