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

I need to limit CPU, memory and network bandwidth usage for a bulk of processes on per-user basis. User is in fact just logic grouping for several daemon processes and not real humans. So different users has similar (but not necessarily identical) set of running processes.

Unfortunately, I'm not even experienced Linux user, so I have no idea how to get it. Could you point out possible ways to accomplish this?

share|improve this question
This is a very general question. And the best solution will be for you to study this link in detail. Linux Limiting and Monitoring Users – muddassir Jun 2 '15 at 6:16
up vote 5 down vote accepted

Pluggable Authentication Modules (PAM) limits will allow you to apply many of these quota restrictions on a per login basis: and Linux Administrator's Guide

share|improve this answer

Big subject to be honest, someone else will answer far better than me but you could start with 'man setrlimit'.

share|improve this answer

ulimit can accomplish much of this, albeit in a somewhat low-level way. You can use iptables for network limiting.

share|improve this answer
Note that ulimit in this context is a shell built in ( at least for bash) , so to get information on this use 'help ulimit' not 'man ulimit' – Kyle Brandt Jun 1 '09 at 12:11

Use virtualization. Then you can be very strict and they can be root of their own VMs if they want.

share|improve this answer
I'd be glad, but this stuff itself intended to be some kind of virtualization =) – Rorick Jun 2 '09 at 9:59

If you're running RedHat or some clone like CentOS you can edit /etc/security/limits.conf to limit resources per user or per group. On other distributions, this config file could be located elsewhere.

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.