ROOT PASSWORD FORGOT

General support questions
Post Reply
Ashok Kumar Perumal
Posts: 1
Joined: 2023/01/25 09:59:25

ROOT PASSWORD FORGOT

Post by Ashok Kumar Perumal » 2023/01/25 10:11:35

DEAR MATE's
I've forgotten the root password; I've reset the password. i have got the mgs All parameter tokens changed successfully, after passwd reset also I'm getting incorrect passwd help to resolve this problem.

User avatar
TrevorH
Site Admin
Posts: 32518
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: ROOT PASSWORD FORGOT

Post by TrevorH » 2023/01/25 11:20:22

Either create a file called /.autorelabel and reboot - touch /.autorelabel && reboot or edit the kernel command line from the grub prompt and append enforcing=0 and continue with the boot. Once booted using the 2nd method, use restorecon -RFv /etc/{passwd,shadow}
CentOS 8 died a premature death at the end of 2021 - migrate to Rocky/Alma/OEL/Springdale ASAP.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are dead, do not use them.
Use the FAQ Luke

Post Reply