LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-14-2011, 06:39 PM   #1
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 116

Rep: Reputation: Disabled
logging in as root


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
 
Old 08-14-2011, 06:50 PM   #2
ramkatral
Member
 
Registered: Aug 2011
Location: Tryon, NC
Distribution: Slackware x64, Arch x64
Posts: 74

Rep: Reputation: 12
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?
 
Old 08-14-2011, 06:54 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.

Last edited by TobiSGD; 08-14-2011 at 06:58 PM.
 
Old 08-14-2011, 06:55 PM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,144
Blog Entries: 21

Rep: Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482Reputation: 3482
Not sure I understand your question?

http://blog.sudobits.com/2011/04/23/...-ubuntu-11-04/
 
Old 08-14-2011, 07:11 PM   #5
ramkatral
Member
 
Registered: Aug 2011
Location: Tryon, NC
Distribution: Slackware x64, Arch x64
Posts: 74

Rep: Reputation: 12
Yet another thing that makes me thankful to be a slacker...
 
Old 08-14-2011, 07:47 PM   #6
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
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.
 
Old 08-15-2011, 12:18 PM   #7
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by p3aul View Post
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 View Post
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.
 
Old 08-15-2011, 12:28 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by MTK358 View Post
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.
 
Old 08-15-2011, 04:28 PM   #9
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by TobiSGD View Post
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.
 
Old 08-15-2011, 08:08 PM   #10
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 116

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-15-2011, 08:46 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

Last edited by John VV; 08-15-2011 at 08:48 PM.
 
0 members found this post helpful.
Old 08-15-2011, 09:32 PM   #12
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 116

Original Poster
Rep: Reputation: Disabled
Quote:
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.

Thanks,

Paul
 
Old 08-15-2011, 10:13 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 .....
 
0 members found this post helpful.
Old 08-16-2011, 11:06 AM   #14
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
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.
 
1 members found this post helpful.
Old 08-16-2011, 03:24 PM   #15
p3aul
Member
 
Registered: Jul 2011
Distribution: Ubuntu 10.04
Posts: 116

Original Poster
Rep: Reputation: Disabled
I downloaded and installed the two packages but I can't see any difference in my right-click menu. Here is what I have now when I right-click:

Create Folder >
Create Document >
Scripts >
Arrange Items >
Organize By Name
Paste
Zoom In
Zoom Out
Normal Size
Properties

As you see, there are no options to open terminal here or to change to root.

Paul

Last edited by p3aul; 08-16-2011 at 03:42 PM.
 
  


Reply



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
Logging in as root rob250 Linux - Newbie 6 08-03-2004 02:46 PM
Logging in as root... The_fuzzy_cow Mandriva 3 11-27-2003 10:47 PM
logging on as root dicom Linux - Software 5 10-29-2003 03:43 PM
Logging in as root. Khalinsar Linux - Newbie 22 09-15-2003 03:13 AM
using red-carpet without logging out and logging as root. packman Linux - Software 1 12-09-2002 02:55 AM

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

All times are GMT -5. The time now is 04:04 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