UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there a policy on this forum about not discussing how to login as root on ubuntu. I wish to do this for private reasons, mostly because I've been told in the Ubuntuforums.org that it is not allowed to even discuss this topic. So if this is your policy too, I want to be aware of it. I know all the arguments against it but I want to do it anyway.
Thanks,
Paul
Okay, I have never even come near Ubuntu, but I'd like to ask an honest question here. You have to go through a special procedure to login as root in Ubuntu? WTF? Are you not simply presented with a login screen where you have the option of logging in as whomever you wish?
It is allowed to ask that on this forum. But I doubt that you fully understand the reasons why it is not encouraged to login as root to a GUI for everyday use, otherwise you wouldn't want to do it.
But anyways, at first you have to unlock the root-account, since Ubuntu hasn't the root account enabled by default. You can do that with
Code:
sudo passwd root
and specifying a password. After that you have to enable root login in the settings your display managers settings. Since I don't use GDM (which I assume that Ubuntu is using in the recent versions) I don't know how to do that.
Edit:
Quote:
You have to go through a special procedure to login as root in Ubuntu? WTF? Are you not simply presented with a login screen where you have the option of logging in as whomever you wish?
This is not only in Ubuntu, but in almost all distros. As said above, Ubuntu (and most derived distros) doesn't have an active root account by default. And it is for obvious reasons not encouraged to login as root to a GUI. Some distros, like Fedora, will even not work properly when you do that.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
With out setting up a root account you can log in as root by booting to recovery and logging in there and then, at the prompt;
Code:
sudo su
and then
Code:
startx
You can also do this at the normal login screen by hitting Ctrl+Alt+F2 and using that tty login as above.
It is still a rather silly thing to do. I do it on occasion though as there are things it is easier to set up that way. Just don't for get where you are and break something.
So if this is your policy too, I want to be aware of it.
Not at all. Ubuntu is the only distro I know of that does this.
Quote:
Originally Posted by p3aul
I know all the arguments against it but I want to do it anyway.
Code:
sudo passwd
Anyway, It's perfectly OK to log into a terminal to do stuff as root or use su, but I strongly recommend that you don't log into the GUI as root. If you really want to run a GUI application as root, use "gksu" or "kdesu" from a desktop that's running as a non-root user.
Not at all. Ubuntu is the only distro I know of that does this.
Most derivatives also. But the OP wanted to know if it is allowed to discuss the login as root here, since it seems not allowed to do that on the Ubuntu forum.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
Quote:
Originally Posted by TobiSGD
Most derivatives also. But the OP wanted to know if it is allowed to discuss the login as root here, since it seems not allowed to do that on the Ubuntu forum.
It will get your post removed over there. And you get a nasty warning about endangering folks.
I find this strange. Ubuntu is where I have worked in the gui the most as root. In testing you run into times, occasionally, where the user config files are really screwy and will not let you get to the desktop. I am lazy and booting as root will let you edit those files easily.
It is not something I think is a good idea, just a lazy solution to some problems. Certainly would not do that on a production OS.
Thanks for all your posts! i find this a more user friendly forum than the other. Over there it's mostly the mods I guess. If you don't think like they do and run Ubuntu as the way they want you to, then they really don't want you. Ad that's alright with me. I like Ubuntu, I've installed a bunch of software and I don't really want to do it all over again, but I'll stick with this forum from now on.
there is almost NO reason to need to boot into root
now starting nautilus or dolphin AS root every now and then that is a bit different .
if you NEED to boot into root
use the single user mode
that said .
almost all the time just starting a session of dolphin as root will give you a gui as root .
just do not use it all the time .
ps
fedora also disables root login by default
the not recommended hack also is not recommended , bad side affects
__________________
-- OpenSUSE 11.3 & Scientific Linux 6.0 --
Yeah, and you should quit smoking and drinking also. And while you are at it lose weight. Bad for the heart! I hear cell phones cause brain tumors and other things. Everybody is so willing to tell you not to do something! that's how they get their kicks out of life.
before unsubscribing
we do not care about your computer
we care about OURS when yours is rooted and turns into a zombie for a bot herder
when your choice causes US harm THEN .....
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
If you are using Nautilus as your file browser you need to install 2 packages;
nautilus-open-terminal which gives you an option in the right click menu to open a directory in a terminal (no need to "cd").
nautilus-gksu which gives you a right click menu option to open a directory as root. You are asked for your password and then nautilus opens another window in super user mode, in the directory chosen. You can navigate from there to anyplace else you may want to go though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.