Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #127793

Re: Grabnting socket privilege to unix utilities

Subject Re: Grabnting socket privilege to unix utilities
Newsgroups comp.sys.mac.system
References (6 earlier) <slrnqu6qu1.1tlm.g.kreme@ProMini.lan> <W5XEF.217419$FR8.1614@fx45.iad> <slrnqu8fse.287v.g.kreme@ProMini.lan> <cF%EF.96415$1S4.19101@fx01.iad> <slrnquachb.1i44.moss@scooter.lan>
From JF Mezei <jfmezei.spamnot@vaxination.ca>
Message-ID <GGdFF.227429$FR8.144882@fx45.iad> (permalink)
Date 2019-12-02 14:33 -0500

Show all headers | View raw


On 2019-12-02 10:47, Larry Moss wrote:

> Only if you grant the user access to ALL. You can specify pretty finely
> what you are giving any/all users access to in the sudoers file.

Thanks. Had not realized how powerful the sudoers file can be. Though it
was just a list of users who were allowed to run sudo to become any user
they wanted.


> The difference isn't in privilege for that app. If it runs as root, then it
> runs as root. The major differences I see are:

Thanks. So whether I run X with sudo or because X has the s bit (and
owned by root), X runs the same.

> * If the suid bit is set, it's always set. There may be a situation where
> you want acme to run as an ordinary user. You can't do that without
> changing the suid bit at that moment.

Understood. fair point. But in the case of "ping", it has one duty and
that duty requires privileges, so it is useless to try to run it
unprivileged.   But in the case of something like "rm", then you really
really don't want to set the "s" bit on it.


> Changing the suid bit on software that came with the system is a system
> level change.

That is the problem. Many internet utilities no longer come with the
system, so you have to build them from open source or import them from
older versions of OS-X.


> But if
> it's not the way the author intended them to run, the warning still
> applies. You should be cautious of changing an installed package.

But some utilities just won't run without privilege, so I have to assume
that it is required when on OS-X. The author may not have intended it to
require privileges, but some OS may require privileges to perform those
operations. (think listening on a well known port, some OS require
privileges, some don't, and some have a deamon that does that work and
hands connections to the software (I beleive launchd does that job on OS-X)



> Be smart. Use sudo. Create shell aliases for the things that you need 
> sudo for if you absolutely must. 

Aliasing a command for another is very dangerous. Consider the
implicatiosn when you run complex scripts that you didn't write
(installinG/building software for instance) where it invokes that
command and gets different than expected results.


Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-11-29 02:00 -0500
  Re: Grabnting socket privilege to unix utilities bje@ripco.com - 2019-11-29 13:23 +0000
    Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-11-29 14:14 -0500
      Re: Grabnting socket privilege to unix utilities bje@ripco.com - 2019-11-30 12:05 +0000
        Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-11-30 17:02 -0500
          Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-11-30 23:04 -0500
            Re: Grabnting socket privilege to unix utilities Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-12-01 07:29 +0000
              Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-12-01 17:25 -0500
                Re: Grabnting socket privilege to unix utilities Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-12-01 22:32 +0000
                Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-12-01 22:36 -0500
                Re: Grabnting socket privilege to unix utilities Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-12-02 09:21 +0000
                Re: Grabnting socket privilege to unix utilities Jolly Roger <jollyroger@pobox.com> - 2019-12-02 15:43 +0000
                Re: Grabnting socket privilege to unix utilities Larry Moss <moss@airigami.com> - 2019-12-02 15:47 +0000
                Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-12-02 14:33 -0500
                Re: Grabnting socket privilege to unix utilities Alan Baker <nunya@ness.biz> - 2019-12-02 15:44 -0800
                Re: Grabnting socket privilege to unix utilities bje@ripco.com - 2019-12-03 10:56 +0000
                Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-12-03 16:54 -0500
                Re: Grabnting socket privilege to unix utilities Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-12-04 06:03 +0000
                Re: Grabnting socket privilege to unix utilities bje@ripco.com - 2019-12-04 14:13 +0000
                Re: Grabnting socket privilege to unix utilities Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-12-05 07:06 +0000
                Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-12-05 05:03 -0500
                Re: Grabnting socket privilege to unix utilities Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-12-05 11:28 +0000
                Re: Grabnting socket privilege to unix utilities bje@ripco.com - 2019-12-05 12:48 +0000
                Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-12-05 18:31 -0500
                Re: Grabnting socket privilege to unix utilities Barry Margolin <barmar@alum.mit.edu> - 2019-12-05 22:35 -0800
                Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-12-06 04:11 -0500
                Re: Grabnting socket privilege to unix utilities Barry Margolin <barmar@alum.mit.edu> - 2019-12-13 09:51 -0800
                Re: Grabnting socket privilege to unix utilities Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-12-06 07:12 +0000
                Re: Grabnting socket privilege to unix utilities Jolly Roger <jollyroger@pobox.com> - 2019-12-06 07:38 +0000
                Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-12-06 04:26 -0500
                Re: Grabnting socket privilege to unix utilities Larry Moss <moss@airigami.com> - 2019-12-03 01:15 +0000
                Re: Grabnting socket privilege to unix utilities Barry Margolin <barmar@alum.mit.edu> - 2019-12-05 22:36 -0800
            Re: Grabnting socket privilege to unix utilities Barry Margolin <barmar@alum.mit.edu> - 2019-12-01 01:01 -0800
              Re: Grabnting socket privilege to unix utilities Lewis <g.kreme@gmail.com.dontsendmecopies> - 2019-12-01 10:47 +0000
                Re: Grabnting socket privilege to unix utilities JF Mezei <jfmezei.spamnot@vaxination.ca> - 2019-12-01 17:29 -0500
            Re: Grabnting socket privilege to unix utilities bje@ripco.com - 2019-12-01 12:31 +0000

csiph-web