Results 1 to 9 of 9
  1. #1

    Set quotas for each users

    How do I set quotas for each user I host in linux?

  2. #2
    Join Date
    May 2006
    Location
    India
    Posts
    661
    Have you got a control panel or its a plane linux machine ?
    SparkSupport.Com - The Premier Tech Company
    Cloud Solutions|Email Infra setup|VOIP|Video Streaming|Software Development
    Email: info@sparksupport.com Phone : 1- 408-600-1449 | Skype : shijils

  3. #3
    Quote Originally Posted by SparkSupport
    Have you got a control panel or its a plane linux machine ?
    No control panel, just plain linux.

  4. #4
    any one can help?

  5. #5
    Join Date
    Dec 2004
    Location
    Washington, DC
    Posts
    789
    Just a "plain" linux box? What distribution? What Kernel?

    What kind of quotas are you trying to set? Hard drive space? RAM? concurrent processes? bandwidth?

    If those questions are answered, others and I may be able to help you further.

  6. #6
    Join Date
    Jan 2004
    Location
    Greece
    Posts
    2,211
    If you need to set disk space or files quotas you can do it using:

    edquota username

    You can check quotas using:

    quota -v username

    You can see quotas for all users using:

    repquota -a

  7. #7
    Join Date
    Jan 2004
    Location
    Greece
    Posts
    2,211
    Before you type the above commands you should enable quotas.

    cd /home (or to the partition you want)
    touch aquota.user aquota.group
    chmod 600 aquot.user aquota.group

    Then edit /etc/fstab and change the line that shows your partition to something like:
    /dev/sda4 /home ext3 defaults,usrquota,nosuid 1 2

    Then restart server and after that type the commands in my previous post.

  8. #8
    Quote Originally Posted by CretaForce
    Before you type the above commands you should enable quotas.

    cd /home (or to the partition you want)
    touch aquota.user aquota.group
    chmod 600 aquot.user aquota.group

    Then edit /etc/fstab and change the line that shows your partition to something like:
    /dev/sda4 /home ext3 defaults,usrquota,nosuid 1 2

    Then restart server and after that type the commands in my previous post.
    In my fstab file, I have the following, but I am not sure which line i should add the quota to it.

    Code:
    # This file is edited by fstab-sync - see 'man fstab-sync' for details
    /dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
    LABEL=/boot             /boot                   ext3    defaults        1 2
    none                    /dev/pts                devpts  gid=5,mode=620  0 0
    none                    /dev/shm                tmpfs   defaults        0 0
    none                    /proc                   proc    defaults        0 0
    none                    /sys                    sysfs   defaults        0 0
    /dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

  9. #9
    Join Date
    Dec 2005
    Location
    Internet
    Posts
    1,352
    Giving it to / might help.

    /dev/VolGroup00/LogVol00 / ext3 defaults 1 1

    Then run the command
    #mount -o,remount /
    quotacheck -a / , to check if Quota has been setup correctly.
    Last edited by ServerNinja; 07-02-2006 at 10:44 AM.
    Senior Server Administrator

Posting Permissions

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