Posted: Thu Feb 20, 2003 11:44 am Post subject: User process limitations..
Hi.
I was wondering if there is any possible way with debian/linux to limit a user or groups processes? I run a web/shell server back in norway and need a system that can help me limit what users can run. For example limit a user down to 2 or 3 processes.
Posted: Thu Feb 20, 2003 3:06 pm Post subject: Found one program.
Hi.
Ive found on perl script that can do this, but it will not parse through my new users. Take a look at it. http://packetstormsecurity.nl/UNIX/IDS/bgcheck-0.5.tar.gz Does it work good with you? Try adding a new user and run somr processes. This script does not get my new users And i dont understand why. Please post me back if it works with you. Im useing the grsec linux kernel patch if it matters
I am not sure if this is what you are looking for but you can use ulimit to specify limitations per user or group. For example ulimit -u 3 will limit a user to running 3 processes at a time.
You may put this into a .bash_profile script for each user or make a global rules in /etc/profile. Have a look at the man page for ulimit. There a lot of usefull switches..
"ulimit -c 0" to prevent programs run by a user from dumping core
"ulimit -a" to show all current limitations for the user
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum