I had enabled root login before and tried to change its password using this guide. But after successfully changing the password and locking it via sudo passwd -dl root. I cannot login back to SSH, it says Access is denied.
I have two users on my machine. root and admin, admin does not have su permission. When I try to use sudo on admin user, it says that admin is not in the sudoers file. That is why i need my su user back.
sudo passwd -dl root? – techraf Aug 24 '16 at 02:03sudowhen you are logged in as root. Now for the problem: you have locked yourself out of the machine and you won't be able to do anything without a physical access to the disk. Do you have one? – techraf Aug 24 '16 at 02:07