Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Dec 2009
    Posts
    12

    Default Changing disk quota for all accounts on a server

    I was trying to change the disk quota massively for all accounts, setting them all to let's say 200,000MB. Something simple like this can generate a file like /etc/quota.conf, saved as /etc/newquota.conf:

    # cd /etc; cat /etc/trueuserdomains |awk '{print $2}'|sort| while read u; do echo "$u=200000" >> newquota.conf; chmod 600 newquota.conf; done

    But apparently modifying /etc/quota.conf does not actually change the quota as I checked it from WHM. before running the above, I changed some of /etc/quota.conf entries manually, but it's not shown on WHM. What else should be done to change the quota other than modifying /etc/quota.conf? I appreciate the suggestions or instructions to change the quota for all accounts.

  2. #2
    bhd
    bhd is offline
    Member
    Join Date
    Sep 2003
    Location
    JNB ZA
    Posts
    144

    Default

    Unless you have each account with a different or no package assigned, why not just change the disk quota in the assigned package(s)?

  3. #3
    Member
    Join Date
    Dec 2009
    Posts
    12

    Default

    Quote Originally Posted by bhd View Post
    Unless you have each account with a different or no package assigned, why not just change the disk quota in the assigned package(s)?
    Yes that's the point; these accounts are moved from a different platform and have no packages identified by cPanel. On the other hand the accounts had different plans and I cannot change them all to one package on cPanel.

  4. #4
    Member
    Join Date
    Dec 2009
    Posts
    12

    Default

    Thanks to Joshua @ cPanel support, the quota can be changed in shell with /scripts/editquota , something like this will change it to 200000MB for all accounts:

    cat /etc/trueuserdomains |awk '{print $2}'|while read u; do /scripts/editquota $u 200000M ; done

Similar Threads & Tags
Similar threads

  1. Disk Quota Mismatch in WHM (Disk Usage Too high)
    By bmcpanel in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 11-09-2011, 09:43 AM
  2. changing /usr/ disk quota
    By Tino-Designs in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 06-29-2009, 04:50 AM
  3. Replies: 2
    Last Post: 03-29-2007, 05:03 PM
  4. Changing Disk Quota Size?
    By jem71 in forum New User Questions
    Replies: 3
    Last Post: 08-29-2005, 05:02 PM
  5. Replies: 1
    Last Post: 08-04-2005, 02:39 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube