LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Process shell limitation (https://www.linuxquestions.org/questions/linux-server-73/process-shell-limitation-819820/)

ysar68 07-14-2010 01:34 PM

Process shell limitation
 
I need when i am creating a shell account to my user to limit him the amount of the processes he can run , so if i wanna to give 5 process as max for this shell account i know i must go in limits.conf and add the user nproc 5 but this creating a problem because also when he is log in is getting 1 process the bash or sh so for him if i need 5 process starting from a number of 10 +5 or i must calculate with other way ?

dylants 07-14-2010 04:14 PM

hi ysar68,

if you use Fedora (and possible also RedHat/CentOS) have a look at /etc/security/limits.conf

there is also a command line function ulimit - the man page for ulimit has a few options worth exploring.

Rgds

Dylan


All times are GMT -5. The time now is 10:54 PM.