The Computer Oracle

Why does htop on Mac OS X require root privileges to see data for all processes, but on Linux it runs without root

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Track title: CC B Schuberts Piano Sonata No 16 D

--

Chapters
00:00 Why Does Htop On Mac Os X Require Root Privileges To See Data For All Processes, But On Linux It Run
00:44 Accepted Answer Score 13
01:27 Thank you

--

Full question
https://superuser.com/questions/981790/w...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#linux #macos #mac #sudo #htop

#avk47



ACCEPTED ANSWER

Score 13


On Linux, htop uses the /proc filesystem, which allows viewing information provided by the kernel. That (/proc) is not part of OSX, so (like some other systems lacking this feature), one can only get at the kernel's data using privileged access.

For more discussion