Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.system > #127738
| From | bje@ripco.com |
|---|---|
| Newsgroups | comp.sys.mac.system |
| Subject | Re: Grabnting socket privilege to unix utilities |
| Date | 2019-12-01 12:31 +0000 |
| Organization | Ripco Communications Inc. |
| Message-ID | <qs0brp$esv$1@remote5bge0.ripco.com> (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> |
JF Mezei <jfmezei.spamnot@vaxination.ca> wrote: > 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). It's not a trick, it's a bad idea. You should not have executables that are suid root. If it's a one-man, one-machine, one-login kind of thing, sure, you'll probably be ok from now to doomsday. One multi-user machines, it's again, a really bad idea. > Are there users who have enough privileges to say create sockets such as > what is needed for ping, but dont have the full mights of root? I really doubt whatever you are fucking with needs to create a socket, it's probably trying to open one somewhere. (Where is truss when you need it?) If you do a ls -l /dev you'll see some of those like this: crw-rw-rw- 1 root wheel 3, 2 Dec 1 06:08 null which anyone can read or write to, or this: crw-r--r-- 1 root wheel 13, 0 Nov 14 15:01 fsevents which only root can read/write to but everyone else can only read. crw------- 1 root wheel 6, 0 Nov 14 15:01 klog is root read/write only. see 'man mknod' for the explanation of the b and c type files. Instead of fucking around with all this half-broke shit, why not just install homebrew? They keep the stuff to date, puts the links in and if not, can easily be manually linked... /usr/local/bin/telnet -> ../Cellar/telnet/60/bin/telnet By the way, if it is creating a socket, it probably should be under /var/run. srwxrwxrwx 1 root daemon 0 Nov 14 15:01 portmap.socket srwxrwxrwx 1 root daemon 0 Nov 14 15:01 pppconfd The ones that start with s are sockets but again, without knowing what it's trying to do, can't really say what needs to be done there. -bruce bje@ripco.com
Back to comp.sys.mac.system | Previous | Next — Previous 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