Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-02-2011, 08:11 AM   #1
Registered: Dec 2010
Posts: 144

Rep: Reputation: 0
Exclamation Restore user in Ununtu 10.10 --Help

I read no system restore in Linux, but I need help, please.
I miss-delete my main user. I couldn't login.

So.. I prompt to root-shell, and created a new user using:
useradd -m <username>
now I logged in to Ubunutu but every operation need admistration passward I don't now it.

Q: Is there a spare method to recover the deleted user?
Q: How can login as root by default?
Old 02-02-2011, 08:34 AM   #2
Senior Member
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
I'm probably missing the point but just looked at the manual for useradd and it said no password by default. So the new user account you set up presumably has no password.

In Ubuntu you don't need a root, administrator, password do you? You simply put sudo in front of a command and then supply the user's password. In this case the user does not have a password so just hit <enter>????
1 members found this post helpful.
Old 02-02-2011, 08:50 AM   #3
LQ Newbie
Registered: Jan 2011
Location: Fr
Distribution: ArchLinux at the moment
Posts: 25

Rep: Reputation: 4

As lugoteehalt said, Ubuntu has no root user (unless you added one), so I don't really understand your "root-shell" thing,
and I'm not sure ubuntu can have a user without password (i never really used ubuntu myself). Safe thing would be to add a password to this new user ( passwd UserName) and see if it works.

Last edited by LoDam; 02-02-2011 at 08:51 AM.
Old 02-02-2011, 02:20 PM   #4
Senior Member
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 153Reputation: 153
Originally Posted by LoDam View Post
As lugoteehalt said, Ubuntu has no root user (unless you added one)
That's incorrect, and not what lugoteehalt said. Ubuntu does have a root user. By default the root account is locked.

Assuming the OP has deleted his main account and logged off/rebooted then he can't put sudo in front of anything because he can't login.

You need to boot into recovery mode. Hold shift during boot if you're not presented with a list of OSs to choose from normally. Once you have a root shell you can add your user account again. Reboot once you've finished.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Open excutable files on Ununtu MODYSAMA Linux - Newbie 2 01-26-2011 05:30 PM
Ununtu server 9.10 apache2 problems Jamie Kugelmann Linux - Server 5 07-28-2009 02:35 AM
Syngery on Ununtu + Windows Crucifix Linux - Newbie 1 12-21-2006 12:55 PM
what is the diffrence of Ununtu and others ? medya Ubuntu 3 10-22-2005 12:10 PM
restore user permissions fisheromen1031 Linux - Newbie 1 07-22-2004 01:56 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration