Hello everyone.
To make my system more secure I made a big mistake when changing the root account setting in /etc/passwd file. I changed the root account's shell to /sbin/nologin becase I wanted to login to the root by sudo su. Anyway, after doing that, I logged in by another user account ad then typed sudo su command in order to log in to root via my current account; however, I got this message "This account is currently not available".
Is there anyway to redo what I have done or anyway to access to root account from another user account?
"This account is currently not available" ... Please help
Re: "This account is currently not available" ... Please hel
Hi,
You might be able to fix this by booting from a live CD, mounting the partition where your filesystem is stored and then editing the file from there?
You might be able to fix this by booting from a live CD, mounting the partition where your filesystem is stored and then editing the file from there?
Re: "This account is currently not available" ... Please hel
Use sudo su -s /bin/bash
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
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