1826414 Members
3989 Online
109692 Solutions
New Discussion

root passwd expires soon

 
brian_31
Super Advisor

root passwd expires soon

we run AS 3 and the root passwd expires very soon. how do we correct this issue? when i login with the root passwd it says old passwd expired and asks for new passwd and then when we change it. any advise would be helpful

Thanks

Brian
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: root passwd expires soon

What is "very soon" for you? At every login? You can use the chage command to set the password expiration interval if you use local authentication.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Krastev
Honored Contributor

Re: root passwd expires soon

You can remove password expiration for Linux with: passwd -x -1


regards,
ivan
TANHM
Advisor

Re: root passwd expires soon

Hi Brian,

Is good to change (enforce policy) the root password frequently. If your environment allows you not to change the root passwd frequently, you can use the gui (run level 5)- to disable the password expiration period.
Vipulinux
Respected Contributor

Re: root passwd expires soon

Hi

You ned to edit /etc/shadow file and edit the string for root.

eg if passwd is expiring in 30 days it will look like:
root:$1xxxxxxxxxxxxxxxxxxxxxxxxxx/:13355:0:30:7:::

change it to
root:$1xxxxxxxxxxxxxxxxxxxxxxxxxx/:13355:0:99999:7:::

Cheers


George Liu_4
Trusted Contributor

Re: root passwd expires soon

The default won't send it to expire in a short time. You may check the security changes on the system. Many abovedmentioned methods could fix your problem, but you may find the cause of the problem. Could some coworkers configure that way?