LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 02-02-2011, 07:11 AM   #1
MODYSAMA
Member
 
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.

Quote:
Q: Is there a spare method to recover the deleted user?
Q: How can login as root by default?
 
Old 02-02-2011, 07:34 AM   #2
lugoteehalt
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, 07:50 AM   #3
LoDam
LQ Newbie
 
Registered: Jan 2011
Location: Fr
Distribution: ArchLinux at the moment
Posts: 25

Rep: Reputation: 4
Hi,

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 07:51 AM.
 
Old 02-02-2011, 01:20 PM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
Quote:
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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 06:39 PM.

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