LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


View Poll Results: Should Slackware remove "sudo" package?
Yes! Kill it! 6 12.00%
No! OMG, Its my BFF! 34 68.00%
Move the sudo package to /extra 9 18.00%
Move the sudo package to Slackbuilds.org 1 2.00%
Voters: 50. You may not vote on this poll

Reply
  Search this Thread
Old 07-13-2014, 12:45 PM   #31
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872

Quote:
Originally Posted by drmozes View Post

Probably in 2006 or there abouts I started seeing Red Hat adopt this 'sudo this' 'sudo that' approach.
I think Max OSX offered the sudo approach to do some system tasks since the first release near 1999-2000
 
Old 07-13-2014, 01:09 PM   #32
jtsn
Member
 
Registered: Sep 2011
Posts: 922

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
Quote:
Originally Posted by kingbeowulf View Post
Why use
"sudo -i <command>"
when you can
"su -c <command> -"
Seems like someone uses the same password for root and user account.
 
Old 07-13-2014, 01:51 PM   #33
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266

Original Poster
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Quote:
Originally Posted by jtsn View Post
Seems like someone uses the same password for root and user account.
Nope.
 
Old 07-13-2014, 02:03 PM   #34
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
If you don't like it don't install it. I don't need it or like it, so I don't install it. I'm sure some people have a use for it, so I don't see a strong reason to kill it.
 
Old 07-13-2014, 02:05 PM   #35
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266

Original Poster
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Thanks for all the comments.

I worded this query the way I did for a reason. I was looking for some insight on Slackware user preferences and there is not better way to get people to respond than a little "bias" (trust me, politics and religion use the same trick). True, I can strip out the "useless" software on my systems, and configure Slackware any way I see fit. Its why I've stuck with Slackware for nearly 20 years (well...except for a brief flirtation with SLAMD64). Slackware includes more software tools than I have yet had a chance to play with.

Lets me clear: I am not a system admin or work in MIS/IT. I'm a chemist that uses computers as a handy tool, and sometimes a plaything. I have done so for nearly 30+ years.

I do not thinks it's a "bollocks" question. How many Linux distro installs, Slackware as well, are in multiuser Server environments? I agree that in such a case, something like sudo would be helpful. However, the world is also composed of numerous singe user system. We have half a dozen boxes here with on a "user" and "root". One system is set up as a "true server" with several users. Perhaps its a poll for another day to determine is Slackare is used more as a Server vs. a Desktop.
 
Old 07-13-2014, 02:13 PM   #36
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by kingbeowulf View Post
Perhaps its a poll for another day to determine is Slackare is used more as a Server vs. a Desktop.
I appreciate that Slackware addresses both use cases and hope that will continue.

Last edited by Didier Spaier; 07-13-2014 at 02:18 PM.
 
1 members found this post helpful.
Old 07-13-2014, 02:14 PM   #37
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
You don't need a server for sudo to be useful. Several people already stated they used it for mounting removable media without a password (not everyone uses a full desktop environment with built in automount). udisks potentially solves this problem as well but not all would be familiar with it and anyway, it is nice to have options.

Of the top of my head sudo could also be used for shutdown or reboot without password.
 
1 members found this post helpful.
Old 07-13-2014, 02:21 PM   #38
chemfire
Member
 
Registered: Sep 2012
Posts: 424

Rep: Reputation: Disabled
I think the poll question is pretty misguided. Sudo in the configuration Slackware ships it is certainly not a security risk. Its also not large package, anyone who does not want it can not install it or remove it; it presents no capacity problem on the install media and isn't a burden on the mirrors. What it is [is] a highly useful tool in certain environments and situations. So there are NO good reasons to remove it and doubtless many who can come forward with use cases for it.

A little off the original topic but the configuration Ubuntu and others use I think ( and I am security professional ) pretty stupid. If you are going to have a wide open sudo policy like that for the most part you might as well just give out the root password to those who need it, and use su

That said there it does provide *some* accountability. su Logs when its called but once you drop to that root shell we don't know who is doing what after that. Its a rather common thing in large shops with many admins for admins to be highly discouraged from dropping to a root shell and instead running just about every privileged command they want on production box via sudo; that way everything gets logged, and its clear exactly who did it. Usually these organizations will have a separate security team that does review said logs and when the see something matching 'sudo\s su\s.*' will require someone to at least explain themselves.
 
1 members found this post helpful.
Old 07-13-2014, 02:22 PM   #39
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
I use it on both server and desktop (single and multi-user), for mounts and shutdowns, some network config options and allow some users necessary ability to start/stop selected daemons.

What do you find so unsafe or unnecessary about sudo that would make you think it should be removed, particularly with regard to Slackware?

Last edited by astrogeek; 07-13-2014 at 02:25 PM. Reason: tyos, tpos, typos...
 
Old 07-13-2014, 02:51 PM   #40
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
To be honest, if I need to do root work, I use a terminal with "su", rather than sudo. Sudo often doesn't have all the capabilities an actual root shell does.

If an account needs permissions for a certain service, I give it that permission level.

I understand sudo is needed as a security precaution, but to be honest, if you properly set permissions assign users and groups correctly, and configure your system properly, sudo isn't even needed.

To me, it's a lazy way of giving root permissions for tasks that you should do as root through "su", and often I have had sudo dump it's own permissions while using it requiring multiple password entries to keep a session with it going.

As for the reboot/shutdown issue. Isn't that why we have hald, consolekit, and the %wheel% group.

Last edited by ReaperX7; 07-13-2014 at 02:56 PM.
 
Old 07-13-2014, 02:57 PM   #41
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
Originally Posted by ReaperX7 View Post
Sudo often doesn't have all the capabilities an actual root shell does.
Use '-i' as discussed previously. This is not to say you should switch to sudo for your use cases. I'm just pointing out that sudo can "have all the capabilities an actual root shell does."
 
Old 07-13-2014, 03:04 PM   #42
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
Originally Posted by ReaperX7 View Post
As for the reboot/shutdown issue. Isn't that why we have hald, consolekit, and the %wheel% group.
As much as anything it about having options. If people have configured and used sudo for this purpose for years why should they change? Is there anything inherently wrong with using sudo for shutdown/reboot?

Are you suggesting they should have to use hald, consolekit, etc. and that the old ways are not good enough?

If you of all people are suggesting this, then I am genuinely surprised.
 
1 members found this post helpful.
Old 07-13-2014, 03:12 PM   #43
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
I just use su on my Slackware systems at home, as I'm the only user. At work, I use sudo because that is the policy, although I have the root passwords and can login as root or su if necessary. I almost never do so, as sudo is perfectly adequate for all routine purposes.
 
Old 07-13-2014, 03:21 PM   #44
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
su vs sudo

All this discussion about su vs sudo. Am I the only one that keeps one or more terminals logged on as root to do their own superuser activities?

I use su once in a while when I'm deep in a directory structure and need to be root for only a moment. Most of the time I need to be root for most of the tasks so it's easier to just be root for the terminal. I also keep one or more non-root terminals open.

I understand that some environments don't lend themselves to the luxury of multiple terminals and multiple logins. If I operated in a more limited terminal environment I would make use of su/sudo to be more efficient.

I'm all for choice however. Just because I don't use a function (sudo) doesn't mean that others don't find it useful. I see how sudo can be useful in team environments and for end-users. Often I don't use or appreciate a feature until I've matured enough to understand it's value.

@dugan said it best ...
Quote:
Sudo is included with Slackware and not enabled by default. I think that's perfect.
I vote for that option.

(metaphor) I like sharp knives, not dull ones. With a sharp blade the job gets done better with more efficiency and effectiveness. I still have all my fingers and only get an occasional small nick every few years which quickly heals. I haven't cut anyone else. Sometimes I ruin the object I'm cutting but I'm prepared for that when I discard the ruined piece and start again on a new spare object. I'm in favor of proper use and appropriate safety features when using sharp tools.

sudo/su can be considered safety features for root. It can save one from disaster, enable others to accomplish tasks, or it can simply get in the way depending upon how it's implemented and used. Or worse yet it can lull one into a false sense of safety when abused or poorly implemented.

You just have to be careful when using knives, guns, motorcycles, airplanes, power tools, and root. (... girlfriends/boyfriends, spouse, finances ... and almost everything else in life as well.)

Powerful tools require understanding/proficiency and discipline to be used safely. Less powerful tools can be safely used by the less proficient or in different circumstances.
 
Old 07-13-2014, 03:38 PM   #45
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
Originally Posted by TracyTiger View Post
All this discussion about su vs sudo.
I don't think it has to be a versus discussion at all. There are plenty of people who use both. Different tools for different jobs.

Quote:
Originally Posted by TracyTiger View Post
Am I the only one that keeps one or more terminals logged on as root to do their own superuser activities?
Nope, you are not the only one.
 
  


Reply

Tags
slackware, software installation, sudo



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
openbox on slack13.37 (x86) -- Thanks to linuxquestions.org, slackbuilds.org & many vectrum Linux - Member Desktop Screenshots 5 02-03-2013 12:22 PM
[SOLVED] "sudo: Can't mkdir /var/run/sudo/%user%: File exists" CNBarnes Linux - Server 7 01-10-2011 04:11 PM
Switching "nv" to "nvidia" = screen shifted to the left? mpriddy Linux - General 5 02-28-2007 10:38 PM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 08:56 PM

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

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