root password and security policy

Cloud9

Well-Known Member
Sep 17, 2012
60
2
58
UK
cPanel Access Level
Root Administrator
Just tried to log into whm, get the following screen (attached)

I cant do anything till I change my root pw - however I dont wish to do this - any way in ssh (I have access via ssh keys) to manual edit this so I can get into whm and not have to change my password ?
 

Attachments

andrewmoras

Active Member
Feb 6, 2021
34
21
8
Remote
cPanel Access Level
DataCenter Provider
You could simply disable the Security Policy - PasswordAge by modifying:

/var/cpanel/cpanel.config

and change SecurityPolicy::PasswordAge=1 with SecurityPolicy::PasswordAge=0

I think this should get you going.

Thanks,

Andrew