PDA

View Full Version : [ubuntu] Can't log in as root in hardy???!



dresman
April 30th, 2008, 10:59 PM
I just switched to 8.04 and it doesn't seem that I can log in as root from the login screen. I don't know how else to log in as root which is a big problem for me.

V-600
April 30th, 2008, 11:02 PM
What distro were you using before. I have missed out a few ubuntu releases but you shouldn't need to log in as root as you can use sudo instead.

If you have a lot to do, in a terminal I believe you can use "sudo su" to become root. Not sure how to login as root from gdm though.

scragar
April 30th, 2008, 11:03 PM
that's the way it's supposed to be, ubuntu subscribes to the "sudo" method of gaining root permitions, if you truely need root access you can run
sudo -ior
sudo suto gain temp root perms in a terminal, if you know what to do as root this is the way to do it, if not then you should be using sudo anyway, since root is too powerful to play around with.



EDITED according to post 6's guidelines, I should read manual on it :P

scragar
April 30th, 2008, 11:13 PM
@ bilal.17 -- read: http://ubuntuforums.org/showthread.php?t=765414


Policy
Tutorials explaining how to enable the root account for a graphical login or autologin will not be supported on the forums and will be moved to the Jail. Although we believe people should have the freedom to run their computers however they want, we also believe in supporting Ubuntu's security model. You can find or post information elsewhere on the internet regarding graphical Ubuntu root logins; such tutorials do not have to be hosted on the Ubuntu Forums.

Joeb454
April 30th, 2008, 11:13 PM
if you truely need root access you can run
sudo -sor
sudo suto gain temp root perms in a terminal

Actually using
sudo -i is preferable. For reasons I won't bother to explain here (permissions issues basically). Just so you're aware :)

master5o1
April 30th, 2008, 11:14 PM
Ubuntu has a disabled root system. Instead of using root in the GUI and login in from GDM you just use 'sudo' and 'gksu' or 'kdesu' infront of commands that require root access.

If you require a root session in terminal use 'sudo -i',
if you DO require a 100% root access GUI then I would ctrl+alt+F1 and login there, then do sudo -i there, then type startx.


UNRECOMMENDED: If you do want to enable the root account, I believe it is:


user@ubuntu:~$ sudo passwd root
Enter new UNIX password: <enter password>

bilal.17
April 30th, 2008, 11:18 PM
@ bilal.17 -- read: http://ubuntuforums.org/showthread.php?t=765414

I'm sorry, I didnt realize I couldnt do that. Is it possible for a moderator, to remove my post or something simillar along those lines.

aysiu
April 30th, 2008, 11:44 PM
I'm sorry, I didnt realize I couldnt do that. Is it possible for a moderator, to remove my post or something simillar along those lines.
Done.

scorp123
April 30th, 2008, 11:55 PM
Is it possible for a moderator, to remove my post or something simillar along those lines. You can edit your own postings. Just remove anything that you think should be removed and mark it like that (e.g. by writing "EDIT: " into your posting) so others understand that you did change your post.