Results 1 to 4 of 4
i am using linux redHat 5 and fedora9
How can assgin disk space quota to particular user suppose i have 4 users
user1
user2
user3
user4
All four users have ...
- 12-24-2009 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 63
Howto assign disk space quota
i am using linux redHat 5 and fedora9
How can assgin disk space quota to particular user suppose i have 4 users
user1
user2
user3
user4
All four users have a each folder
/data/folder1
/data/folder2
/data/folder3
/data/folder4
i want to assign space limit/restriction of 100MB on each on folder.
Thanks in Advance
- 12-24-2009 #2
Using userquota type will be fine in your case. First of all, in /etc/fstab file, add usrquota option for the partition where you want to enforce it.
Let say, you want to set quota in /dev/sda3 partition.
Remount partition and execute mount command to check if usrquota has been enabled for /dev/sda3.Code:/dev/sda3 /data ext3 defaults,usrquota 0 0
Enable quota db now
Add quota limit for each user now.Code:quotacheck -c /data
For 100MB limit, set 70MB as soft quota ( User will receive warning on crossing soft quota limit ). Set 30MB as Hard quota (User will be restricted on crossing this limit).
Execute this to check if quota has been set correctly for each User.Code:edquota user_id
Code:repquota /data
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 12-24-2009 #3Just Joined!
- Join Date
- Mar 2008
- Posts
- 63
Thanks for your kind reply
But where you mentioned the 70MB or 30MB ????SO the quota will enforced.
- 12-25-2009 #4Just Joined!
- Join Date
- Dec 2009
- Posts
- 4
when u excite
# edqutoa user1
block soft hard indoes soft hard
60000 90000
soft for give warning
hard for max limit
ps: recommend to use
# quotacheck -cmgu /data
# quotaon /data
cream_ontop


Reply With Quote