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. |
Quote:
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! |
deleted...
|
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 Type root, and as a password type your password which you set up during installation. Next type Code:
adduser yourname 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. |
Quote:
|
lol I assumed you were able to log in as root. But then I read that you couldn't. Sorry.
|
Quote:
|
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.
|
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?
|
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.
|
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 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 :) |
omg, its so simple... does no one know???
To log in as root on ubuntu (in terminal) Code:
sudo su |
Quote:
Also, you're not logging in as root with "sudo su". |
Quote:
http://www.psychocats.net/ubuntu/sudo |
All times are GMT -5. The time now is 03:52 AM. |