Click to See Complete Forum and Search --> : Limiting user resources in Solaris


epseps
03-10-2002, 01:54 PM
I can't block users from the server, (I really really really wish I could) but thanks to some mistakes on my part and BAD programming on part of a user or two, the Enterprise 5500 with 2 CPU's 1gig RAM, 4gig swap has miserably crashed a few times (when I have not been logged in as root console and when someone snuck onto the server to crunch numbers). The OS is Solaris 2.6 and I want to limit the user resources to a slow but useable amount so that they are encouraged to crash their own workstations.

Any idea how I do this? What would be a good percentage of CPU +Memory to set it at if the only thing that they were supposed to be on the server for was ftp, copying, moveing, and text editing?

PS...any of you who have ever been through a Solaris crash..the memory gets eaten up so much that you can't even do an init 0 or even an 'ls'...all I could get to work was 'echo'

javierm
03-13-2002, 12:54 PM
When you are working with solaris, you have a couple of commands that may be able to help you. The commands are limit/ulimit and quota.
Read the man pages for ulimit or type ulimit -a and read the man pages for quotaon, edquota and so forth.

When it comes to how much to give to each user, well, that really depends on your environment and your user needs.