CentOS 7- Root account getting locked

Issues related to applications and software problems
Post Reply
samuelraj
Posts: 2
Joined: 2021/09/06 04:12:13

CentOS 7- Root account getting locked

Post by samuelraj » 2021/09/06 04:21:46

Hi All,

I am facing a strange issue on my CentOS VM which is hosted on Google Cloud. The root account getting locked whenever the servers are rebooted after some time. I checked the root user password config. It seems to be ok.

Please refer to the attached.

Is there anyone facing a similar issue?

User avatar
TrevorH
Forum Moderator
Posts: 31080
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 7- Root account getting locked

Post by TrevorH » 2021/09/06 17:30:44

Nothing attached.

Never used google cloud but some providers disable root and make you use a non-root userid that then has full sudo ability.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

samuelraj
Posts: 2
Joined: 2021/09/06 04:12:13

Re: CentOS 7- Root account getting locked

Post by samuelraj » 2021/09/08 09:04:40

Thanks for your reply TrevorH.

My apologies, I have attached the root user password policy.
root_password_policy.png
root_password_policy.png (16.02 KiB) Viewed 886 times

User avatar
jlehtone
Posts: 3669
Joined: 2007/12/11 08:17:33
Location: Finland

Re: CentOS 7- Root account getting locked

Post by jlehtone » 2021/09/08 12:26:33

Is the "lock" really in passwd/shadow, or is it in sshd config, PAM access, etc?

User avatar
TrevorH
Forum Moderator
Posts: 31080
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 7- Root account getting locked

Post by TrevorH » 2021/09/08 12:34:00

As I said, I would suspect this is policy at GCP. Check in /etc/cloud/cloud.cfg and see if it contains e.g. "disable_root: 1"
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Software Support”