LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to login as root? (https://www.linuxquestions.org/questions/ubuntu-63/how-to-login-as-root-480375/)

Bordeaux 09-04-2006 03:32 PM

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.

randell6564 09-04-2006 03:43 PM

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!

extrasolar 09-04-2006 03:45 PM

deleted...

_Lukes 09-04-2006 03:57 PM

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.

randell6564 09-04-2006 03:58 PM

Quote:

Originally Posted by extrasolar
deleted...

HUH!? Speak up man! I cant hear you!

extrasolar 09-04-2006 03:59 PM

lol I assumed you were able to log in as root. But then I read that you couldn't. Sorry.

randell6564 09-04-2006 04:41 PM

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:rolleyes: .,Thats not the issue here,:) LOL!

Bordeaux 09-04-2006 05:03 PM

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.

Bordeaux 09-04-2006 05:31 PM

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?

Bordeaux 09-04-2006 05:39 PM

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.

_Lukes 09-05-2006 04:12 AM

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 :)

pengu 09-05-2006 11:59 AM

omg, its so simple... does no one know???

To log in as root on ubuntu (in terminal)

Code:

sudo su
thats it!

extrasolar 09-05-2006 12:40 PM

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".

aysiu 09-05-2006 02:39 PM

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


All times are GMT -5. The time now is 03:52 AM.