LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 03:52 PM   #46
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

Quote:
Originally Posted by ruario View Post
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.
You didn't understand what I meant. Users have access to the reboot and shutdown sequence of init through consolekit, hald, and wheel. That doesn't go to say that one should have to use sudo to reboot or shutdown the system, or even those toolkits, and that if you use effective permissions as well as proper group and user permission assignments, and such, sudo is often unnecessary.

To me sudo reflects the unnecessary burying and limiting of root permissions on users which is done on my mainstream distributions, and all the incoherent blather you get from people at Ubuntu and such who preach sudo like a damned-be-all religion, and that logging in as root or using a root shell is inherently evil, stupid, wrong, or misguided in practice and implementation.

To me, yes, hald, consolekit, and wheel represent other ways, but at least they are effective, minimal, and don't get preached out like a damned religion, and work by design and default the same as permissions handling and using effective permissions and usergroups, even if those toolkits weren't available.

Last edited by ReaperX7; 07-13-2014 at 03:53 PM.
 
Old 07-13-2014, 04:04 PM   #47
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I reboot with Ctrl+Alt+Del and shutdown pressing the power button (ACPI is enabled on my laptop), and never use sudo.

But I can't find any good reason to make harder for others to get it, let alone deprive them of it.
 
Old 07-13-2014, 04:59 PM   #48
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I use sudo. I use su -.

All of the anti-root zealotry is a waste of time. The computer is a tool. Nothing more.
 
6 members found this post helpful.
Old 07-13-2014, 05:32 PM   #49
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by ReaperX7 View Post
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.
Assigning permissions assumes there is a daemon service running for what you are trying to do, and that it is full-featured enough to respect group ownership. I will give you an example to illustrate your nearsightedness on the issue. It is specific to me, yes, but I'm sure others could have their own needs.

I keep track of all the internet-facing bandwidth my computer uses with some iptables magic. Bandwidth caps are the devil's work and I like knowing exactly what is being used. In order to output that information (the current bandwidth used for this session, which gets added to logged information) I need to be able to run iptables. I do not want my user running iptables. That would be stupid. So instead a script in a non-user-writable location runs `iptables -L` etc., calculates the total, and responds with a number. Without sudo, I would have to su to root every time I wanted this information and it would be terminal-bound (unless I did some cron workaround to write the data to a user-accessible file but that is just ridiculous). With sudo, I can run the script, which is in no way harmful or dangerous, without needing a password, without needing a root terminal open, and I can use that information elsewhere (for example, in a status bar, where it currently lives). I have no idea how I would be able to do this without sudo other than making iptables setuid (which, again, is crazy), or installing some third-party bandwidth monitoring system with a daemon service. It isn't a matter of properly assigning permissions or assigning users and groups...no matter what I do, my user will still not be able to get that information. It needs privilege elevation. And sudo facilitates that without compromising the security of the system.

For system administration I use 'su -' because I am the system administrator. But for other commonly used tasks it is easier to use sudo (plus you don't have a root terminal sitting open so there's no chance for making mistakes, but that's a personal choice).
 
3 members found this post helpful.
Old 07-13-2014, 07:48 PM   #50
jprzybylski
Member
 
Registered: Apr 2011
Location: Canada
Distribution: Slackware
Posts: 99

Rep: Reputation: 23
While I find that plain old UNIX permissions are good enough for many things, sudo adds a lot of flexibility (at the price of a little thought). I use both su and sudo.

PS: When I think of sudo, I think of OpenBSD, not Ubuntu or Red Hat. On OpenBSD, it comes with the base system in the same way as Slackware's - available, but disabled until configured. I think this is best.
 
1 members found this post helpful.
Old 07-13-2014, 08:06 PM   #51
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
Yes, sudo disabled by default is preferred, but then again, I never use it except during the build phase of BLFS and multi-package situations that call for using as_root, but other than that I find sudo more or less useless.
 
Old 07-13-2014, 08:35 PM   #52
jprzybylski
Member
 
Registered: Apr 2011
Location: Canada
Distribution: Slackware
Posts: 99

Rep: Reputation: 23
I mostly use it for package management, mounting drives, that sort of thing. I find it keeps me from long, boring nights of reinstalling systems over drives that had recently been victim to dd.

I will admit its usefulness is mostly limited to multi-user machines, though that may be by design.
 
Old 07-14-2014, 01:27 AM   #53
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
I use sudo and su. I voted that No option. A simple no is all.


What is BFF? http://www.internetslang.com/BFF-meaning-definition.asp

BFF is "Best Friends Forever" or "Big Fat Friend/Female"

I can think of a few other definitions.

Last edited by chrisretusn; 07-14-2014 at 01:29 AM.
 
Old 07-14-2014, 02:27 AM   #54
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Leave it where it is, as it is. Part of the full install, and disabled by default. Both for the sake of those who need it and know how to use it, and for those who abuse it.
 
Old 07-14-2014, 04:58 AM   #55
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 295

Rep: Reputation: 181Reputation: 181
>no "replace sudo with systemd" poll option

C'mon, you're a better troll than that.

And no, nothing to fix here, nothing broken with sudo in the default setup (that is, on 'root ALL=(ALL) ALL' mode.)
 
Old 07-14-2014, 08:52 AM   #56
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 226

Rep: Reputation: 29
A great idea, but not radical enough. I for one am a bit tired of having text editors shoved down my throat by Canonical and Redhat-I vote that they are all moved to /extra as coreutils is all an admin should need. Whilst we're at it, how about compiling kernel-generic without support for iptables; it's syntax is hardly in keeping with the Unix philosophy and anyone who doesn't want to get owned the moment their server is up should man up and compile their own kernel. In fact, the whole networking stack should be in /extra-it's been the source of our woes for years and what's wrong with posting floppies to each other anyway?

Last edited by Phorize; 07-14-2014 at 08:56 AM. Reason: Previous post too rational
 
Old 07-14-2014, 09:05 AM   #57
Arkerless
Member
 
Registered: Mar 2006
Distribution: Give me Slack or give me death.
Posts: 81

Rep: Reputation: 60
Quote:
Originally Posted by Phorize View Post
A great idea, but not radical enough. I for one am a bit tired of having text editors shoved down my throat by Canonical and Redhat-I vote that they are all moved to /extra as coreutils is all an admin should need.
Ed, man! !man ed!
 
Old 07-14-2014, 03:06 PM   #58
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
No! Talk about text editors is forbidden! We do not need another EMACS vs ????? war ever again... EVER.
 
Old 07-14-2014, 03:14 PM   #59
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
You mean VIM vs ???? war, because Emacs is terrible and not worth mentioning.
 
Old 07-14-2014, 03:25 PM   #60
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
All OS writers who favor big-endianness should be deported to Blefuscu.
 
  


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