LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-04-2006, 03:32 PM   #1
Bordeaux
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
How to login as root?


Hi,
After being unable to login as root after several method I finally managed to delete my own account too. Now there is only one account which is root but I am unable to login both in GENOME and KDE.
Please help me on allowing login as root by any terminal command coz I can only login using recovery mode as root. I am using Ubuntu 6.06 LTS.
Thank you all.
 
Old 09-04-2006, 03:43 PM   #2
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Rep: Reputation: 31
Quote:
Originally Posted by Bordeaux
Hi,
After being unable to login as root after several method I finally managed to delete my own account too. Now there is only one account which is root but I am unable to login both in GENOME and KDE.
Please help me on allowing login as root by any terminal command coz I can only login using recovery mode as root. I am using Ubuntu 6.06 LTS.
Thank you all.
HI! I'm sure that you are aware of the dangers involved in working as root user, so I'll skip that lecture.

If you go to System>Administration>Login Window, click on the 'Security' tab, you will see a line that reads, "Allow local system adminstrator login". Check the box next to it and close the window.

Then go to System>Administration>Users and Groups, double-click on 'root'. Check the box that reads, "Set password by hand" and enter your root password. click "ok" and your set!

I wish that you had not deleted your 'user account', because I cannot tell you how to get that back! So until then, BE CAREFUL!

Last edited by randell6564; 09-04-2006 at 03:45 PM.
 
Old 09-04-2006, 03:45 PM   #3
extrasolar
Member
 
Registered: Feb 2004
Location: Northamptonshire, UK
Distribution: Windows XP, Arch Linux
Posts: 131

Rep: Reputation: 16
deleted...

Last edited by extrasolar; 09-04-2006 at 03:48 PM.
 
Old 09-04-2006, 03:57 PM   #4
_Lukes
LQ Newbie
 
Registered: Jun 2006
Location: Bedzin, Poland
Distribution: Debian
Posts: 16

Rep: Reputation: 0
Hi!

You can login as a root in command line without any problem. Since you have deleted your account you first have to bring it back. So when you see GDM press
Code:
Ctrl+Alt+F1
, than you should be in console, asked to login.
Type root, and as a password type your password which you set up during installation.
Next type
Code:
adduser yourname
, and some informations
When you do this just logout and login as usual.
Now you will be able to enable logging in as a root in KDE or GNOME.
To do this go to System -> Administration -> Gnome Display Manager, and on Security tab choose 'allow system administrator login',
next go to System -> Administration -> Users where you have to click on root and choose properties. In password section choose manual, and set one, after this on last tab check all the options.
After all this you should be able to login as a root without any problems

PS. You might have to stop gdm after step 1 ( Ctrl+ALt+F1 and login) because sometimes it activates by himself, to do this right after logging type /etc/init.d/gdm stop

PS2 Sorry for my English

Hope this will help.
 
Old 09-04-2006, 03:58 PM   #5
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Rep: Reputation: 31
Quote:
Originally Posted by extrasolar
deleted...
HUH!? Speak up man! I cant hear you!
 
Old 09-04-2006, 03:59 PM   #6
extrasolar
Member
 
Registered: Feb 2004
Location: Northamptonshire, UK
Distribution: Windows XP, Arch Linux
Posts: 131

Rep: Reputation: 16
lol I assumed you were able to log in as root. But then I read that you couldn't. Sorry.
 
Old 09-04-2006, 04:41 PM   #7
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Rep: Reputation: 31
Quote:
Originally Posted by extrasolar
lol I assumed you were able to log in as root. But then I read that you couldn't. Sorry.
Yeah, but I'm not the one with the problem! (I mean.,I got a WHOLE lot of problems, Mostly not computer related!), but UHHUM .,Thats not the issue here, LOL!
 
Old 09-04-2006, 05:03 PM   #8
Bordeaux
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you all, what actually happened is when I created a new user and logged in by it I could not find "Users and Groups" under Administration. But I'll try that again. Thanks again for these quick replies.
 
Old 09-04-2006, 05:31 PM   #9
Bordeaux
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
well,the same again. When I logon using the account I created by "adduser" I can see neither "Users and Groups" nor "Login Screen window". I have no idea where those all went away, including synaptic package manager. I guess there is something relating to my permissions. Is that another problem?
 
Old 09-04-2006, 05:39 PM   #10
Bordeaux
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Oh one more, I can see those (Users and Groups etc.) in KDE and whenever I click it asks for password to run the command "gksu user-admin" but whatever the passwd(of root and the new a/c) I give it either shows "Wrong password" or "connection with su failed...." or something or "su failed with an error" but displaying no error.
 
Old 09-05-2006, 04:12 AM   #11
_Lukes
LQ Newbie
 
Registered: Jun 2006
Location: Bedzin, Poland
Distribution: Debian
Posts: 16

Rep: Reputation: 0
To solve the problem you need to login as a root in text mode once again, and then add yourself to appropriate groups:
Code:
adduser yourname sudo adm admin
Then you will be able to do all the changes.

After all this you would probably also would like to add yourself to such groups: audio, lpadmin(printer), floppy, cdrom, video, plugdev, scanner

Good luck
 
Old 09-05-2006, 11:59 AM   #12
pengu
Member
 
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207

Rep: Reputation: 30
omg, its so simple... does no one know???

To log in as root on ubuntu (in terminal)

Code:
 sudo su
thats it!
 
Old 09-05-2006, 12:40 PM   #13
extrasolar
Member
 
Registered: Feb 2004
Location: Northamptonshire, UK
Distribution: Windows XP, Arch Linux
Posts: 131

Rep: Reputation: 16
Quote:
Originally Posted by pengu
omg, its so simple... does no one know???

To log in as root on ubuntu (in terminal)

Code:
 sudo su
thats it!
Yeah but how could he do that without a user account to log in with in the first place?

Also, you're not logging in as root with "sudo su".

Last edited by extrasolar; 09-05-2006 at 12:41 PM.
 
Old 09-05-2006, 02:39 PM   #14
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Quote:
Originally Posted by extrasolar
Yeah but how could he do that without a user account to log in with in the first place?

Also, you're not logging in as root with "sudo su".
If you somehow delete yourself from the admin group, you fix that by following this tutorial:
http://www.psychocats.net/ubuntu/sudo
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
Gnome: Cannot login as default user, sends back to login, works as root Danny-T Linux - Newbie 2 05-27-2006 03:44 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 11:39 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM
root login incorrect ,then passwd root,but error sunnycn Linux - Security 6 05-20-2002 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:12 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration