PDA

View Full Version : No passwd Entry for Root


llamy
23rd November 2007, 01:35
Hi,

I have by mistake messed up with my /etc/passwd in Ubuntu Feisty so the First line of /etc/passwd is :

oot:x:0:0:root:/root:/bin/bash

istead of

root:x:0:0:root:/root:/bin/bash

Fortunately i can loin with another user but cannot run sudo or su.
i get this error message :
No passwd Entry for Root

I have tried to Enter recovery mode but cannot get access to the shell prompt.

I have tried to boot with the Live CD as i read on some forums but i do not know how to mount the root partition in what.

can you Please help!

Thanks.

llamy
23rd November 2007, 03:21
Thanks to God,
This link while googling help me to get my system back as normal
www.cyberciti.biz/tips/recovering-deleted-etcshadow-password-file.html
After issuing this command on step 1: # mount -rw -o remount /
I did vi /etc/passwd and update the root line.
Then i power off the system and on reboot i was back to normal.