I accidentally modified the line for root in /etc/passwd and changed its named. To fix it I tried using sudo to modify this file, but it does not let me sudo because sudo can't find the root user since I renamed it.
II am on ubuntu.
linuxpasswdrootUbuntu
I accidentally modified the line for root in /etc/passwd and changed its named. To fix it I tried using sudo to modify this file, but it does not let me sudo because sudo can't find the root user since I renamed it.
II am on ubuntu.
Best Answer
Try :
If you can't, reboot on a live-cd, then in terminal :