Limiting a user to an amount of procs.
I know of /etc/limits ...is that the place to put a limit of a users processors/programs, is limited to. And if so, what is rough average for browsing, playing tunes, basically a general desktop.
|
I created a /etc/profile.d/ulimit.sh file containing the following:
Code:
#!/bin/sh Code:
$ ps ux | wc -l |
Thanks for the reply T3slider, would you also consider limiting root?
|
I believe that will limit root already since it does not discriminate based on uid, but root will always have the ability to increase the max processes if needed by running ulimit in the shell (regular users cannot increase the limit above the hard limit). I guess the following would work to restrict it to regular users:
Code:
#!/bin/sh |
All times are GMT -5. The time now is 04:21 PM. |