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.