Limit User resources

From Wiki

Revision as of 17:52, 9 August 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1. As root:

vi /etc/security/limits.conf
#add the following line, where steve is the user:
sburke hard nproc 5
#save and close the text editor.
#The user will not be able to run more than 5 processes at the same time.

2. ssh sburke@localhost

ps -eaf | grep sburke | ls /var/tmp | less
-bash: fork: Resource temporarily unavailable


Personal tools