Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to prevent a user from checking list of processes started by another user ?

In other words, how do I forbid a user to see which processes are running by another user ?

share|improve this question
up vote 0 down vote accepted

There are several ways to achieve that.

The oldest I know would be using a kernel with grsecurty patches applied, which bring restrictions for procfs

Another one would be the PID namespace feature of cgroups.

And the latest one the hidepid feature of procfs.

When available, I'd go for the last one, as it is the least intrusive one.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.