LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-27-2005, 10:36 AM   #1
0p3r4
LQ Newbie
 
Registered: Oct 2005
Location: Sweden
Distribution: Debian/Ubuntu
Posts: 20

Rep: Reputation: 1
Help with quotas


Hello everyone, I would like to know if there is an easy way to give every member of a certain group a specified amount of diskspace using quotas.

If I set a group to have 10 mb, does that mean that (1) that group can have 10 mb in total or (2) does it mean that each member gets 10 mb?

If it works, as i presume it does, as option #1, is there any other way to give every groupmember a specified amount of diskspace?

--0p3r4
 
Old 10-27-2005, 02:46 PM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
Re: Help with quotas

Quote:
Originally posted by 0p3r4
Hello everyone, I would like to know if there is an easy way to give every member of a certain group a specified amount of diskspace using quotas.

If I set a group to have 10 mb, does that mean that (1) that group can have 10 mb in total or (2) does it mean that each member gets 10 mb?

If it works, as i presume it does, as option #1, is there any other way to give every groupmember a specified amount of diskspace?

--0p3r4

i think setting a group to 10MB means only the group as a whole gets 10MB, not each member of the group. otherwise it wouldn't make sense to even have a group quota, for example if you added more users the project or group would just keep getting bigger.

i also don't believe you can set quotas for groupmembers *within* an individual group (meaning as opposed to just giving them a quota in general), if that's what you mean by the second part, but i could be wrong. it would be interesting to see how that's done if it is possible, though.

Last edited by slackhack; 10-27-2005 at 02:48 PM.
 
Old 10-27-2005, 03:35 PM   #3
0p3r4
LQ Newbie
 
Registered: Oct 2005
Location: Sweden
Distribution: Debian/Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 1
well thats pretty much what i thought... one idea i have summoned up since posting this earlier today was that you might also be able to perform this by dedicating a high starting ID-number of the affected users, lets say like 700, this way you would be able to use one single syntax to give every user from 700 and up the same quotas.

(Got the idea from reading this at http://www.ibiblio.org/pub/Linux/docs/HOWTO/Quota)

========
4.3. Assigning quota for a bunch of users with the same value


To rapidly set quotas for, say 100 users, on my system to the same
value as my user bob, I would first edit bob's quota information by
hand, then execute:

______________________________________________________________________
edquota -p bob `awk -F: '$3 > 499 {print $1}' /etc/passwd`
______________________________________________________________________



assuming that you are using csh, and that you assign your user UID's
starting with 500.

========
Anyway, unless someone has a better idea i guess this is how i will do this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
User Quotas gsibble Linux - General 4 06-12-2007 08:30 PM
Quotas andy7t Linux - General 1 12-15-2004 03:14 PM
Makes quotas little_ball Slackware 1 10-30-2004 02:39 PM
How do I setup Quotas rbeckett Linux - Newbie 4 09-15-2004 02:19 PM
RedHat 7.2 and Quotas ShellShocked Linux - Software 0 08-29-2003 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration