I’ve been trying to wrap my head around this for a while. So I somehow managed to goof up my root
password and now I can’t access my remote server, when I login. I however, have sudo
access through another user using SSH.
Therefore, I have root privileges, just that I can't seem to access the root login. So how can I reset the root
password using root
privileges from another user? Is it even possible?
EDIT: Could it be possible that my /etc/sudoers file is conflicting? Because each time I log in, it says ACCESS DENIED. I have both "root" and my other username in there.
sudo -i
and enter normal user password. It will go to root prompt from there you can change root password. – max Jul 14 '16 at 4:05