Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.system > #127734
| From | Lewis <g.kreme@gmail.com.dontsendmecopies> |
|---|---|
| Newsgroups | comp.sys.mac.system |
| Subject | Re: Grabnting socket privilege to unix utilities |
| Date | 2019-12-01 07:29 +0000 |
| Organization | Miskatonic U |
| Message-ID | <slrnqu6qu1.1tlm.g.kreme@ProMini.lan> (permalink) |
| References | (1 earlier) <qrr64g$7hd$1@remote5bge0.ripco.com> <f6eEF.46412$gt2.26112@fx02.iad> <qrtltd$atm$1@remote5bge0.ripco.com> <5GBEF.46443$gt2.474@fx02.iad> <bZGEF.113229$YF.7514@fx43.iad> |
In message <bZGEF.113229$YF.7514@fx43.iad> JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>>> sudo chown root:wheel command-that-is-a-problem
> The binaries in /usr/local/bin were already onwed by it.
Generally files in /usr//local/bin should NOT be owned by root.
% ls -ls | grep root [0:20] [/usr/local/bin]
8 -rwxr-xr-x 1 root wheel 202 Oct 17 2018 fing
8 -rwxr-xr-x 1 root wheel 810 Apr 5 2019 fing-uninstall.sh
fing has to run as root.
>>> sudo chmod u+s command-that-is-a-problem
> That did the trick. "s" tells the OS to run that executable under the
> username of the owner of the file instead of that of the parent process
> (aka: the user running the command).
And because of that is *extremely* dangerous when you make root the
owner. It is much safer to simply use sudo when you need to use a tool
that requires root privs. I mean, it's unlike;y to matter with ping on
your own system, but it is definitely bas practice.
> (on VMS, one could grant, via the INSTALL utility, specific privileges
> to the app, so the app ran under your user, but the binary code was
> granted those specific privs (so for instance, possible to listen to a
> well known port, but not access all system files).
You can use the sudoers file to allow access to specific apps.
username ALL = (root:root) NOPASSWD: /path/to/executable
--
Passion is the pill you can swallow forever Taking them one by one
One by One --Agents of Good Roots "Come On"
Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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