Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!kreme.eternal-september.org!.POSTED!not-for-mail From: Lewis Newsgroups: comp.sys.mac.system Subject: Re: Grabnting socket privilege to unix utilities Date: Sun, 1 Dec 2019 10:47:09 -0000 (UTC) Organization: Miskatonic U Lines: 37 Message-ID: References: <5GBEF.46443$gt2.474@fx02.iad> Injection-Date: Sun, 1 Dec 2019 10:47:09 -0000 (UTC) Injection-Info: kreme.eternal-september.org; posting-host="89b2f5cabc15a2c8ab4f0cdde6577399"; logging-data="22095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vyhYOszIY7/n1vldgqry6" User-Agent: slrn/1.0.3 (Darwin) Cancel-Lock: sha1:3m6QbEIJFVTkCKFWGUnD/8WH1r8= X-Face: )^b5"R:T7U>9~:PEn3YkzMfW*[b1qKeU.fP9C8~8HpU9}lA&6`bH1z X-Clacks-Overhead: GNU Terry Pratchett Mail-Copies-To: nobody Xref: csiph.com comp.sys.mac.system:127737 In message Barry Margolin wrote: > In article , > JF Mezei wrote: >> >> sudo chown root:wheel command-that-is-a-problem >> >> The binaries in /usr/local/bin were already onwed by it. >> >> >> 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). >> >> 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? >> >> (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). > I don't think Mac OS has the concept of fine-grained capabilities like > this. It's a relatively recent feature of Linux. > Mac OS just has root vs. non-root. That is quite incorrect. macOS has an extensive ACL framework. You can do nearly anything you want in the man page for chmod. For example, when the kids were young I used ACLs on the movies in the shared volume to restrict their access to some of the movies I didn't want them accidentally seeing without supervision. -- Right now I'm having amnesia and deja vu at the same time. I think I've forgotten this before.