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-24-2011, 02:43 PM   #61
ac_kumar
Member
 
Registered: Aug 2011
Distribution: Ubuntu, Fedora
Posts: 175

Rep: Reputation: 9

Ubuntu has a alternate method to run applications as root :
$sudo command
than enter password of u r user account from which u r login.
u can run commands in terminal with sudo as root privileges or gui applications from terminal as root privilages:
$sudo gedit file
it is a simple way to not login as root and run commands as root privileges in ubuntu.
 
Old 08-24-2011, 02:59 PM   #62
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 ac_kumar View Post
Ubuntu has a alternate method to run applications as root :
$sudo command
than enter password of u r user account from which u r login.
u can run commands in terminal with sudo as root privileges or gui applications from terminal as root privilages:
$sudo gedit file
it is a simple way to not login as root and run commands as root privileges in ubuntu.
that isn't the point, any linux system can do that provided the user is in the sudoers file
sometimes, however there is a need in a Linux system for a user to be logged in AS root since running with sudo doesn't load all of root's environment variables and a few other things and the best way to do that is to enable logging in as root, which on many distributions is enabled by default

linux is supposed to be about choice, ubuntu seems to want to take away all choices except the ones THEY make FOR you, which goes against the Linux philosophy, which is why so many people are mad at ubuntu

yes you can run 'sudo su -' to get a full root login as well but sometimes even that's not as good as just logging in as ROOT, either way taking away choices from users who are used to having choice is going to make people mad.
 
Old 08-24-2011, 03:13 PM   #63
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 frieza View Post
linux is supposed to be about choice, ubuntu seems to want to take away all choices except the ones THEY make FOR you, which goes against the Linux philosophy
Isn't that a contradiction in itself? I mean, I am using Linux for the choice (at least this is one reason), but what if I would choose that I want Canonical to make the choice for me? Is using Ubuntu really against that philosophy of Linux that I can choose what I want to use, even if it leaves me with less choice than other distros?
 
Old 08-24-2011, 03:17 PM   #64
ac_kumar
Member
 
Registered: Aug 2011
Distribution: Ubuntu, Fedora
Posts: 175

Rep: Reputation: 9
Ubuntu has a alternate method to run applications as root :
$sudo command
than enter password of u r user account from which u r login.
u can run commands in terminal with sudo as root privileges or gui applications from terminal as root privilages:
$sudo gedit file
it is a simple way to not login as root and run commands as root privileges in ubuntu.
 
Old 08-24-2011, 03:36 PM   #65
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
This is a post from a long time tester, not sure when he started testing but he has done it for years. Very dedicated and good at it.
http://ubuntuforums.org/showpost.php...3&postcount=18
 
Old 08-24-2011, 04:06 PM   #66
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by frieza View Post
that isn't the point, any linux system can do that provided the user is in the sudoers file
sometimes, however there is a need in a Linux system for a user to be logged in AS root since running with sudo doesn't load all of root's environment variables and a few other things and the best way to do that is to enable logging in as root, which on many distributions is enabled by default

linux is supposed to be about choice, ubuntu seems to want to take away all choices except the ones THEY make FOR you, which goes against the Linux philosophy, which is why so many people are mad at ubuntu

yes you can run 'sudo su -' to get a full root login as well but sometimes even that's not as good as just logging in as ROOT, either way taking away choices from users who are used to having choice is going to make people mad.
It is not about "taking away choices" but rather "choosing a sane default." And I think this discussion is lumping together two separate (but related) questions:

1. Most distros discourage GUI login as root. (Puppy is the only one I can think of that has it by default.) This is the sane and rational default. Ubuntu is simply with the majority here (and I agree with their decision).

2. Some distros use 'su' by default, and some use 'sudo' by default. Again this isn't "taking away choices" but simply "choosing a default." Out of the distros I test, it seems like 'su' is the majority, but 'sudo' is a sizable minority. Ubuntu is certainly not the only distro to ship with 'sudo' by default. Many popular and respected distros use 'sudo' and unlike GUI-root-login (which is an open-and-shut conversation as far as I'm concerned) I think it's safe to say there are pros and cons of 'sudo' vs 'su'.

Again I have no problem with Ubuntu disallowing GUI root logins (most distros do this) or choosing 'sudo' (it's debatable) so long as they clearly explain the reasons why and provide alternatives for those who need "choice." Every time the topic comes up on Ubuntu Forums, a moderator links to this article, which answers all questions:

https://help.ubuntu.com/community/RootSudo

If you read the article, you will see that "sudo -i" provides a root shell with root's environment variables.
 
  


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 10:02 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