Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    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.
    Code:
    /dev/sda3    /data      ext3    defaults,usrquota   0   0
    Remount partition and execute mount command to check if usrquota has been enabled for /dev/sda3.
    Enable quota db now
    Code:
    quotacheck -c /data
    Add quota limit for each user now.
    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).

    Code:
    edquota user_id
    Execute this to check if quota has been set correctly for each User.
    Code:
    repquota /data
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just 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.

  4. #4
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...