Solved

I need to put some quota on disk space usage and no. off processes for a user

Posted on 2003-11-13
3
327 Views
Last Modified: 2010-04-21
I have a server and I want to give remote access to some users, but first I need to be sure that they would not fill out my processes queue whit useless processes. So I wanna put a 3 simultaneos processes limit / user, and give them only 100 or 200 MB disk space. At the limit quota problem I think that is better to let a user to run only 1 or 2  background processs,  how do I ?

    I think it can't be that hard .. but I need at least some clues.

                             Thanks for help!
0
Comment
Question by:C TG
3 Comments
 
LVL 20

Accepted Solution

by:
Gns earned 25 total points
ID: 9741155
Limiting number of simultaneous processes: ulimit -u <num>
(if you use bash... "help ulimit" or "man bash" give some more details... Most important is that users can only lower the limit, not raise it... only root can do that).
Note that limiting all users to 2 or 3 processes can have rather... unwanted effects. Best would be to place the ulimit in a global shell startup file (like /etc/profiles ... or similar), and test id, so that you only set it for the users in question. Since the shell will count as at least 1, perhaps raising the limit just somewhat from your intended value would be wise:-).

Limiting diskspace: use the quota system...
man quota quotaon edquota fstab
for details.

-- Glenn
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9744918
Glenn already gave you the good hints, I'm just so you a url for quota setting which may be more easy for you to understand quota setting

http://www.tldp.org/HOWTO/Quota-4.html

ps. I'm just expend a bit abt Glenn suggestion, so the points should go to Glenn
0
 
LVL 2

Expert Comment

by:sam_sunder
ID: 9761997
Hi ,

You can edit /etc/security/limits.conf file for all the things which you wanted. Its very easy to do let me know if you face any problem.

regards,

sam
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
capture pcap with filtered traffic 1 64
How to learn Linux? 10 61
installing LSI MegaRAID Storage Manager on CentOS 7 22 346
expectj telnet failing 5 36
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question