LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Deleted ROOT account (https://www.linuxquestions.org/questions/linux-general-1/deleted-root-account-484368/)

Ashrack 09-17-2006 12:00 PM

Deleted ROOT account
 
I was trying to hack into the root account in my VMWARE's UBUNTU install.

But apperantly instead of doing the following things in VMWARE's UBUNTU I did it on my real desktop UBUNTU DAPPER installation.
This is what I did:
I deleted the root line from /etc/shadow, /etc/passwd
and after did:
Code:

userdel -r root
So now am without root, SUDO gives me the following:
Code:

tom@tomi:~$ sudo
sudo: no passwd entry for root!

So what can I do?

Matir 09-17-2006 12:13 PM

Boot from a LiveCD and repair the /etc/passwd file by re-adding the line you deleted. Easiest way would be to just restore from a backup.


All times are GMT -5. The time now is 05:19 PM.