Operating System - HP-UX
1832940 Members
2563 Online
110048 Solutions
New Discussion

Re: Untrusted password expired

 
LJenkins
Occasional Contributor

Untrusted password expired

I have a problem to disable the password expiration in an untrusted server, I know how to do that in trusted server but not in untrusted server, could you please help me to set root password never expired.
3 REPLIES 3
F Verschuren
Esteemed Contributor

Re: Untrusted password expired

in the hostfile the passwd string will have a aditional ,??,? part, if you remove this part of the passwd string in the passwd file your aging is removed.
Jose luis Martinez Esca
Occasional Advisor

Re: Untrusted password expired

Hi

first you need to know some attributes of the user account. you can get them with the command

passwd -s user_acount

with the output you will see the min and max life time of the account. To avoid the expiration time you can use the next command

passwd -n 0 -x 0 user_acount

after press enter you can sse the next message
argument rounded up to nearest week
argument rounded up to nearest week

this is an informative messege. you can check your user account with the command

passwd -s user_acount

you will see something like this

prueba2 PS 01/12/09 0 0

now you only need to reset the passwd and you wont see the expiration time

passwd -s prueba2

prueba2 PS


atte: ch2
Steven E. Protter
Exalted Contributor

Re: Untrusted password expired

Shalom,

You should be able to use sam to select and individual user, even root and set it to not expire.

Its a menu option.

It might cause you problems on your next security audit, but its straightforward to do the change.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com