LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


View Poll Results: root or sudo?
root 14 51.85%
sudo 10 37.04%
Don't know 1 3.70%
Other (please specify in post) 2 7.41%
Voters: 27. You may not vote on this poll

Reply
  Search this Thread
Old 10-11-2018, 01:29 PM   #16
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011

Quote:
Originally Posted by jsbjsb001 View Post
While it's like everything else here it's open to interpretation, personally I didn't see it like that. BW-userx is still on-topic. As long as it's about the thread topic (which I must say all posts so far have been) and no rules have been broken, then it's fine by me.

I must say while I didn't intend on responding this soon, some great comments so far! Thanks guys!
You are correct - I took it wrong. I must admit I too get upset (angry too strong?) when certain aspects of computing get shoved down my throat without a choice. We are discussing security however, and since that is my business, I should be used to the reactions by people of security implementations: who knows how many users I have upset by pointing rules out to them, or by proving to them their system is not secure...
 
1 members found this post helpful.
Old 10-11-2018, 01:32 PM   #17
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
I guess that's why most of us are here... it's always good to have a choice. I hate being told what to use/do as well. I know exactly how ya feel there.

(not saying anyone responding to this thread was trying to dictate anything mind you)
 
Old 10-11-2018, 01:36 PM   #18
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by hydrurga View Post
"Control of our lives"?

There are rules all throughout Linux - file attributes, access rights, password requirements, all intended to make Linux more secure. "Power users" can easily tweak Linux, and that includes giving root a password for those distros who make the root password empty and locked by default (and these distros are not "dictators", they're just trying to improve security for the normal user).
define normal? if a user being the one installing the Linux/GNU operating system should by every right have access and or a root account attached to it. They are by default the root administrator, it is to whomever else they give an accountant to that does not necessary need root. to me removing the root account is them saying you do not know enough to get root, but we'll give you sudo and sudo su instead, then read in here how someone needs to use root to fix something but cannot obtain root because that distro "hid" root account. (because you cannot get rid of it, it is needed by design) making it difficult to fix something, having to go in backdoor grub access or some such thing. hours waisted when all one had to do is
Code:
su 
passwd:
two lines now turned into having to do what else is now needed to obtain root. The responsibility should be left in the "owner/user" of the system and not the one making it available to the masses.
Quote:
d these distros are not "dictators", they're just trying to improve security for the normal user
matter of perspective. you are a newbie/normal user, we here believe you do not have the ability to learn and know how to use root, so we took that away from you for your safety.

( here is a pack of matches, and we removed the striker pad for your safety)

I am the owner of this system, I need root do some stuff, and to learn how to become God of Linux/GNU why are you hindering me?

Last edited by BW-userx; 10-11-2018 at 01:41 PM.
 
2 members found this post helpful.
Old 10-11-2018, 01:53 PM   #19
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,784

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
I always keep a root terminal window handy for administrative things. That window has a light red background as a reminder to be careful when using it.
 
1 members found this post helpful.
Old 10-11-2018, 01:59 PM   #20
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by BW-userx View Post
define normal? if a user being the one installing the Linux/GNU operating system should by every right have access and or a root account attached to it. They are by default the root administrator, it is to whomever else they give an accountant to that does not necessary need root. to me removing the root account is them saying you do not know enough to get root, but we'll give you sudo and sudo su instead, then read in here how someone needs to use root to fix something but cannot obtain root because that distro "hid" root account. (because you cannot get rid of it, it is needed by design) making it difficult to fix something, having to go in backdoor grub access or some such thing. hours waisted when all one had to do is
Code:
su 
passwd:
two lines now turned into having to do what else is now needed to obtain root. The responsibility should be left in the "owner/user" of the system and not the one making it available to the masses.

matter of perspective. you are a newbie/normal user, we here believe you do not have the ability to learn and know how to use root, so we took that away from you for your safety.

( here is a pack of matches, and we removed the striker pad for your safety)

I am the owner of this system, I need root do some stuff, and to learn how to become God of Linux/GNU why are you hindering me?
So you are saying that the person who installed the system should, by default, run things like their browser as root? Even the installer wears two hats - the system administrator and a normal user. It is good to distinguish between these two for security purposes.

The thing is that if you know enough, or have the smallest Google-fu ability, you can easily set the root password in the *buntu family (it takes one command). Canonical's decision was to, by default, protect the non-savvy user from doing that (you see, the masses - of which I am one - now are the installers of systems). I think that's fair enough. The default is that sudo allows root privileges so there is no need to actually be root at any point (and I would be interested if you can come up with an example where you do).
 
1 members found this post helpful.
Old 10-11-2018, 02:30 PM   #21
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by rknichols View Post
...That window has a light red background as a reminder to be careful when using it.
Now that's smart idea! Never thought of that!

Quote:
Originally Posted by hydrurga View Post
...The default is that sudo allows root privileges so there is no need to actually be root at any point...
While I understand why sudo exists; Personally, it's annoying to have to put "sudo" front of every command you want to run with root permissions. Given that I only ever switch to root (with the su - command) when I actually NEED to do something that requires root, unless it IS something that requires root; I'm only running the terminal/shell under my normal scumbag account that doesn't have any root permissions anyway.
 
Old 10-11-2018, 02:47 PM   #22
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by jsbjsb001 View Post
While I understand why sudo exists; Personally, it's annoying to have to put "sudo" front of every command you want to run with root permissions. Given that I only ever switch to root (with the su - command) when I actually NEED to do something that requires root, unless it IS something that requires root; I'm only running the terminal/shell under my normal scumbag account that doesn't have any root permissions anyway.
You don't. You can use sudo su (or sudo su -, or sudo -i, or whatever your choice is, depending on your needs) if you want to have root privileges on the command line for multiple commands.
 
1 members found this post helpful.
Old 10-11-2018, 03:00 PM   #23
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by hydrurga View Post
So you are saying that the person who installed the system should, by default, run things like their browser as root? Even the installer wears two hats - the system administrator and a normal user. It is good to distinguish between these two for security purposes.

The thing is that if you know enough, or have the smallest Google-fu ability, you can easily set the root password in the *buntu family (it takes one command). Canonical's decision was to, by default, protect the non-savvy user from doing that (you see, the masses - of which I am one - now are the installers of systems). I think that's fair enough. The default is that sudo allows root privileges so there is no need to actually be root at any point (and I would be interested if you can come up with an example where you do).
NO I am saying by default the one that installed it should have root account access. as most are home users, and the "corporations" should it not be the server techs that know root anyways?

just because one does not always use root, instead sudo is set up, is not to say might as well just hide it way so one has to jump through hoops to gain root account access. because they won't know how to use it in the first place, and if they do all they will do is destroy there system using root (su) anyways, so we'll look out for them and make it harder to gain su (root), mentality it implies.

it is their system, their responsibility. lets keep them non-savvy so we can still have an amount of control over the ones that use "our" systems. Lets burn books and remove schools so they will not learn too much and become free thinkers. it is a means of control, not security.
 
1 members found this post helpful.
Old 10-11-2018, 03:03 PM   #24
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by hydrurga View Post
You don't. You can use sudo su (or sudo su -, or sudo -i, or whatever your choice is, depending on your needs) if you want to have root privileges on the command line for multiple commands.
Thanks for the info! Should have remembered that!

While if it was say a medium to large sized business where you have say 10 techs and say the administrator and their deputy, it makes a lot of sense that you wouldn't be giving the root password to all 10 techs; if it's just a home machine where there is only one person acting as administrator when required and that's it, I don't think it makes a lot of sense to have to use sudo by default (even though you can enable root itself obviously).

Even if it's only one command you want to run with root permissions, it's still annoying to have to put "sudo" in front of the command you want to run with root permissions.
 
Old 10-11-2018, 03:08 PM   #25
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by BW-userx View Post
NO I am saying by default the one that installed it should have root account access. as most are home users, and the "corporations" should it not be the server techs that know root anyways?

just because one does not always use root, instead sudo is set up, is not to say might as well just hide it way so one has to jump through hoops to gain root account access. because they won't know how to use it in the first place, and if they do all they will do is destroy there system using root (su) anyways, so we'll look out for them and make it harder to gain su (root), mentality it implies.

it is their system, their responsibility. lets keep them non-savvy so we can still have an amount of control over the ones that use "our" systems. Lets burn books and remove schools so they will not learn too much and become free thinkers. it is a means of control, not security.
"Jump through hoops"? One single command to restore a root password on a *buntu system. One. Single. Command. Life is tough. Oh yes, right up there with "burning books", sure enough.
 
Old 10-11-2018, 03:11 PM   #26
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Not to digress too much but...microsoft utterly failed with windows because the only user installed is the "root" user on end user PCs. So, malware has free reign on the system because the end user context is an admin. Since windows version 1, this has been and still is, the standard.

Since most end users (not admins) do not understand the implications of using a system as the admin, mass produced OS's should not make the only user of the system an admin, but should err on the side of caution and make the only user a non-admin, with the option to elevate if the user is savvy enough to know what they are doing.

My .02 - not trying to argue, just demonstrate that since the planet has millions of PC's all running as root, this makes virus distribution so much easier...
 
2 members found this post helpful.
Old 10-11-2018, 03:13 PM   #27
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by jsbjsb001 View Post
Now that's smart idea! Never thought of that!



While I understand why sudo exists; Personally, it's annoying to have to put "sudo" front of every command you want to run with root permissions. Given that I only ever switch to root (with the su - command) when I actually NEED to do something that requires root, unless it IS something that requires root; I'm only running the terminal/shell under my normal scumbag account that doesn't have any root permissions anyway.
exactly, when I get tired of using sudo then try to use su, and get told what are you talking about su?
google search, next distro to try out...
 
1 members found this post helpful.
Old 10-11-2018, 03:20 PM   #28
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by hydrurga View Post
"Jump through hoops"? One single command to restore a root password on a *buntu system. One. Single. Command. Life is tough. Oh yes, right up there with "burning books", sure enough.
yep I left Ubuntututu for more than that reason, admitting I never looked into that part of it, as I left Ubuntututu long before, for reasons other than root issues, I only read in here all of the issues users where having with Ubuntututu after I left it to backdoor into Ubunutututu to fix something when a normal Linux distro all that user had to do was type su : passwd. instead the user had to go through a complicated list of commands. maybe they fixed that part of it, but I still stand that it should not even be hidden. this is Linux/GNU so yes if you are going to be using it then learn about that end of it too, and not have it hidden from the users, it keeps them dumb down. an attempt to burn books, yes it is.

I bet if it were possible to remove root all together then the *untutututu would do that.

Last edited by BW-userx; 10-11-2018 at 03:24 PM.
 
1 members found this post helpful.
Old 10-11-2018, 03:29 PM   #29
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by BW-userx View Post
exactly, when I get tired of using sudo then try to use su, and get told what are you talking about su?
google search, next distro to try out...
That's the other thing isn't it? Depending on the distro concerned it might be the root user itself or it might be "sudo" for root permissions. It doesn't make life easy, particularly for the newbie. Like when we answer questions here... which distro are they using? Oh, one of the *buntu's, then if it needs root, it's "sudo bahbahbah". But on the other hand, it's CentOS, so it's just switch to root (su -) and then whatever command run as root.

BTW, "here is a pack of matches, and we removed the striker pad for your safety", what a perfect analogy! You make me laugh (in a good way - not bagging/disagreeing your response), keep it up!

We really need a :laughing: emoji! (sorry that was off-topic - my fault - don't follow my example there )
 
Old 10-11-2018, 03:32 PM   #30
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Humor good!
 
  


Reply

Tags
root, sudo, system administration



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sudo to user other than root but do not allow sudo to root Westmoreland Linux - Security 4 07-13-2022 01:09 PM
sudo: effective uid is not 0, is sudo installed setuid root? awladnas Linux - Newbie 10 08-30-2014 06:03 PM
Question about the sudo command, specifically how to have sudo act as if user is root slacker_ Linux - Newbie 17 09-22-2013 03:48 PM
sudo cd /root gives 'sudo: cd: command not found'. stf92 Linux - Newbie 4 03-03-2012 09:05 AM
Can't use sudo, only account that's not root is not a sudo'ers [Ubuntu 9.10] randyriver10 Linux - Desktop 1 01-09-2010 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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