3 ms·
When I type "ps -aux", why do I get all the information from other users too? Shouldn't this be private information by default?
by amelius 2y ago
When I type "ps -aux", why do I get all the information from other users too? Shouldn't this be private information by default?
- sva_ 2y agoYou can harden your system using hidepid. Chapter 4.1: https://www.kernel.org/doc/html/latest/filesystems/proc.html https://www.kernel.org/doc/html/latest/filesystems/proc.html
- amelius 2y agoMy point: why isn't this private __by default__? (Also, I fear that by setting this flag it will break a lot of tools that expect the flag to be 0)
- seventyone 2y agoOn FreeBSD there's a sysctl to control it and there's a kernel module you can configure to allow specific UIDs/GIDs to see everything so you can still allow your monitoring tools to do their job without being root, for example. It's a standard config in places I've worked
- GranPC 2y agoIt's configurable - "hidepid=1" mount option on procfs.
- usr1106 2y agoWhy? Because Unix was written in the 1970s when privacy and computer security where not a topic yet. Hardenings have been added later, but the one you mention is still not the default.