Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I had installed Gmail, and that had created a lot of users on the login screen. So I decided to delete them. But as I deleted them, I lost my user account. Now when I login there's only guest login option.

Hence I have to recover my files that were in the user account.I know e2undel but how can I do it (install and execute from the guest account) when I don't know the password of the root.

share|improve this question
    
Boot from a liveCD and mount your harddrive, then you can pull off the files. –  dan08 Aug 22 '13 at 14:27
add comment

1 Answer

up vote 0 down vote accepted

Ubuntu don't have a root password. That said, you should try going for the "Recovery Mode" in the GRUB "Advanced options", select "Drop to root shell prompt" then create your system user with adduser:

adduser user

Then reboot and login with your new user. Also, you should make sure your new user is member of the admin and sudo group.

adduser admin user
adduser sudo user

If during this commands the system complains about being on read-only or that files couldn't be written, the run this:

mount -o remount,rw /
mount --all
share|improve this answer
    
Though its late but thanks for the help!! Saved me a lot of files! –  anup1912 Dec 30 '13 at 6:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.