LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-09-2012, 03:56 AM   #31
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367

Quote:
Originally Posted by widget View Post
I have no promblem with folks that want to log in as root. It is their box and their OS. I have had times, due mainly to idiotic "improvements" that I have made, that the only way I could get to a desktop was as root. Much easier to fix my improvements from there.

I have done it on purpose when there was really no need. Why? Because I could. It also allows me to set up a desktop that is easier for me to use as root. I also use a different wallpaper on that desktop so that if I get into it as root I absolutely know that is where I am. Sometimes I want to edit a number of config files at one time. Easy to do as root.
I cannot think of a single occasion in the last several years where I've needed to log in to a DE/WM or startx as root. A gui root file manager is as easy as:

Code:
$ kdesu dolphin &
Code:
$ gksu thunar &
(or xfe or pcmanfm or nautilus or rox-filer, etc)
If you're lazy you can even make launchers for these.

You can also launch a root terminal, though I'm not sure why anyone would want to launch a root terminal with gksu/kdesu. You still have to enter your password, you're merely saving yourself the trouble of typing 2 - 4 letters.

As someone who doesn't really use file managers much, I probably just don't get it though...

Apart from file managers, what other gui apps really need to run as root? A graphical package manager maybe? I can't think of much else.
 
Old 08-09-2012, 09:32 AM   #32
simsgw
LQ Newbie
 
Registered: Jul 2012
Location: So California
Distribution: Fedora
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by caravel View Post
[...] As someone who doesn't really use file managers much, I probably just don't get it though...

Apart from file managers, what other gui apps really need to run as root? A graphical package manager maybe? I can't think of much else.
Not many, which is unfortunate. I don't object to advising against starting a GUI as root. What passes for a security model in Linux is two-level user controls, with most users restricted and one user class completely unrestricted. Most Linux systems have only a brief period during installs when they are isolated from the network, and the GUI is as open to exploitation as a teenager to a Friday date, so it invites system confiscation to give root privileges to a GUI app.

On the other hand, it is ridiculous that the most complex task on a computer is left to the linear verbal command line. I understand it as well as anyone. I was delighted when we were able to stop ganging binary code into the registers one word at a time, but I was equally happy to see the command line displaced with graphic interfaces for most work. Try to persuade a design engineer to let go of his CAD for a command line interface to a plotter. Life is not linear and complex problems are not easily mapped down to simple verbal commands. We do it, but it is error-prone and requires much higher levels of visualization and concentration than we like to admit.

With no better security than ordinary user constraints we certainly should not be starting the user GUI as root, but we should create an admin-GUI that is specifically designed to maintain security while facilitating system configuration and management tasks.

Gary
 
Old 08-09-2012, 11:11 AM   #33
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by simsgw View Post
Not many, which is unfortunate. I don't object to advising against starting a GUI as root. What passes for a security model in Linux is two-level user controls, with most users restricted and one user class completely unrestricted. Most Linux systems have only a brief period during installs when they are isolated from the network, and the GUI is as open to exploitation as a teenager to a Friday date, so it invites system confiscation to give root privileges to a GUI app.

On the other hand, it is ridiculous that the most complex task on a computer is left to the linear verbal command line. I understand it as well as anyone. I was delighted when we were able to stop ganging binary code into the registers one word at a time, but I was equally happy to see the command line displaced with graphic interfaces for most work. Try to persuade a design engineer to let go of his CAD for a command line interface to a plotter. Life is not linear and complex problems are not easily mapped down to simple verbal commands. We do it, but it is error-prone and requires much higher levels of visualization and concentration than we like to admit.

With no better security than ordinary user constraints we certainly should not be starting the user GUI as root, but we should create an admin-GUI that is specifically designed to maintain security while facilitating system configuration and management tasks.

Gary
i would have to respectively disagree, a gui is excellent in the example of a CAD, in fact in that instance a gui probably IS better, but when it comes to programs that might have literally hundreds if not THOUSANDS of individual options, a GUI would be horribly complex.
besides that you already HAVE the ability to run GUI programs as root from within a normal user's desktop, but running the entire gui as root invites running the web browser and by extension it's plugins and other programs such as messengers, as root as well, and if those programs are exploitable and get exploited while being run as root, you're screwed, and as more than one person, myself included has stated, a compromised machine has implications for the Internet as a whole, not just the individual machine, which is why root login to GUI is disabled, you don't need it.
 
Old 08-09-2012, 01:45 PM   #34
simsgw
LQ Newbie
 
Registered: Jul 2012
Location: So California
Distribution: Fedora
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by frieza View Post
i would have to respectively disagree, a gui is excellent in the example of a CAD, in fact in that instance a gui probably IS better, but when it comes to programs that might have literally hundreds if not THOUSANDS of individual options, a GUI would be horribly complex.
Big disconnect in your thinking there. The complexity of the activity we manage is precisely why we need an interface that deals more easily with multi-dimensional relationships. For all the really difficult systems-management problems, we use a graphical interface. Linux management of an individual system is only perhaps halfway up that scale of complexity, but it still would profit from a more effective interface.

The rest of your note is pretty much a non sequitur. I did not suggest anyone start one of the usual Linux GUIs like Gnome or KDE as root. I merely lamented that we haven't taken time to create a properly secure GUI for Linux management work. We do know how, you know. The security issues of a Linux system are pretty low key compared to many that already have a graphic interface. We have just not bothered because the focus has been on turning Linux into a desktop operating system.

Gary
 
Old 08-09-2012, 02:10 PM   #35
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
granted, however running the entire gui, security holes and all, with the root user account is considered bad practice, running an individual gui utility within a user's desktop isn't

and yes, there are still things that a command line can do more efficiently than a gui, hands down, especially when it comes to manipulating large text files, as well as being able to chain commands together to perform more complex tasks (stream piping)

but the original point of this thread was being able to log into the desktop as root, which is bad, bad, bad (yes I used to do it regularly before distributions started enforcing not being able to do so), this wasn't a gui vs command line argument initially, just about the ability to log into a desktop/wm as root, which defeats the point of having limited users.

---------- Post added 08-09-12 at 02:11 PM ----------

granted, however running the entire gui, security holes and all, with the root user account is considered bad practice, running an individual gui utility within a user's desktop isn't

and yes, there are still things that a command line can do more efficiently than a gui, hands down, especially when it comes to manipulating large text files, as well as being able to chain commands together to perform more complex tasks (stream piping)

but the original point of this thread was being able to log into the desktop as root, which is bad, bad, bad (yes I used to do it regularly before distributions started enforcing not being able to do so), this wasn't a gui vs command line argument initially, just about the ability to log into a desktop/wm as root, which defeats the point of having limited users, and even if you could, there are programs (such as vlci believe,
 
Old 08-09-2012, 02:25 PM   #36
simsgw
LQ Newbie
 
Registered: Jul 2012
Location: So California
Distribution: Fedora
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by frieza View Post
[...] and yes, there are still things that a command line can do more efficiently than a gui, hands down, especially when it comes to manipulating large text files, as well as being able to chain commands together to perform more complex tasks (stream piping)
That's true only when you're working with a badly designed interface. Really badly designed, since doing better at such tasks than the command line is pretty basic. But this isn't a design forum, so you're right: let's leave it.

Gary
 
Old 08-09-2012, 09:16 PM   #37
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
Just because you are using the gui as root does not need to mean that you are on line with it. Turning off a connection is easy, even before you get to the gui.

To assume users are silly enough to get on line as root may be, in fact, reasonable. Many people do that, or nearly that, with the most used OS out there.

I, personally, find that at times it is convinient to log into my gui as root. I do not do this to surf the web. Why would anyone do that?

Stupidity I suppose. That will not be cured by not being allowed to log in as root.

One thing I find fascinating to do is compare the desktop, unmodified, in the root account with the modifided user desktop. While it is true that when you first boot to a new install this is what you are seeing, it is interesting to look at after a couple of months or a year.

On my more experimental installs I do set up a desktop as root. So that comparison is not useful in the least on those. Using them as root is simply a lazy way of dealing with them. They are rarely on line even if logged in as a user. I do not spend much time on them and I want to do what I feel needs done, rapidly, and get out.

They are usually only on line for update/upgrade cycles and that is done from here in a chroot environment.

This install goes back to November of 2010. While it is possible that I have logged in here as root I do not think I ever have. There is a

Sid install on this drive that I have done that on. Once, recently for about 1.5 hours. There was no reason to connect, I was playing with my system. I am happy to report that the things I screwed up were fixed before coming back here. It was great FUN and I think I may have learned some things even.

I see no point, or sense, in restricting what someone does with their own computer.
 
Old 08-09-2012, 11:09 PM   #38
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by widget View Post

I see no point, or sense, in restricting what someone does with their own computer.
actually nobody is
root login to GUI is indeed disabled by default, but can be enabled, i myself have done it, it is just disabled by default to prevent stupidity, but if you really, really, want to do so you just have to know what you're doing, actually it isn't that hard.. just editing a file, which file it is, i forget, and it isn't really that much of an edit if i recall correctly.
 
  


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
How to create a root user account? thomas2004ch Linux - Software 8 05-25-2011 07:01 PM
"To add a new user account, log in to the root account" how do i do this (im new) pierce77x Linux - Newbie 4 12-28-2008 02:44 PM
root account or user account arodlinux SUSE / openSUSE 3 12-23-2008 08:59 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
how to create root-like user/account? rsumbeling Linux - General 6 11-23-2004 12:38 PM

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

All times are GMT -5. The time now is 10:29 PM.

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