Oneway to limit users is by using the ulimit command that is part of the shell.
Typically ulimit commands are placed in /etc/profile so that each user who logsin will execute the commands and set limits on himself. Therefore decide what limits to place on your users and put ulimit commands into /etc/profile.
The most ulimit options are...
- -a Displays all limits
- -c maximum core file size
- -f maximum file size
- -t maximum CPU time in sec
- -n maximum no of open files
- -u maximum no of processes
This example displays the users limit and then changes the maximum number of open files..
Gspace$ ulimit -a |grep open
comment 0 Comments
more_vert