Solved

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

Posted on 2003-11-13
3
325 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now