Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Possible security issue with the use of 'ps'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Possible security issue with the use of 'ps'
Authored by: thrig on Apr 21, '03 01:58:14PM

Not sure why Apple is setting the suid bit on /bin/ps, though it can be removed via:

$ sudo chmod u-s /bin/ps

On related unix systems, FreeBSD has no suid bits on the ps binary, while OpenBSD has the sgid bit set for the kmem group.



[ Reply to This | # ]
Possible security issue with the use of 'ps'
Authored by: jafager on Apr 21, '03 03:10:10PM

I would recommend against this unless you really know what
you're doing. Even if you never use the command line, you
could end up breaking graphical applications (or critical parts of
the operating system) if you hose /bin/ps.

It wouldn't surprise me at all to find that the Darwin /bin/ps is
significantly different from the FreeBSD version; the process
table is pretty proprietary stuff.

jafager



[ Reply to This | # ]