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
Site Admin
Posts: 33202
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
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 3784 times

User avatar
jlehtone
Posts: 4523
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
Site Admin
Posts: 33202
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"
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply