From mboxrd@z Thu Jan 1 00:00:00 1970 From: itz@very.loosely.org (Ian Zimmerman) Date: Fri, 27 Apr 2018 09:58:31 -0700 Subject: [TUHS] rm command In-Reply-To: References: <20180425221716.B4C6718C086@mercury.lcs.mit.edu> Message-ID: <20180427165831.loewgjeqju6u2alh@matica.foolinux.mooo.com> On 2018-04-28 02:26, Dave Horsfall wrote: > On my FreeBSD server: > > % ls -l /bin/ps > -r-xr-xr-x 1 root wheel 35640 Oct 15 2017 /bin/ps > > On my crappy MacBook: > > % ls -l /bin/ps > -rwsr-xr-x 1 root wheel 51200 Jul 15 2017 /bin/ps Clearly this will depend on how ps is implemented, which is one of the messier aspects of our favorite OS. If it does its thing just by reading a pseudo-file or a pseudo-device, then setgid will be enough, but maybe it needs to execute a root-only system call. There is a longish thread on comp.unix.programmer right now about this very topic. -- Please don't Cc: me privately on mailing lists and Usenet, if you also post the followup to the list or newsgroup. To reply privately _only_ on Usenet and on broken lists which rewrite From, fetch the TXT record for no-use.mooo.com.