Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jun 2005
    Posts
    28

    Default Unable to read /etc/quota.conf at /scripts/resetquotas line 23

    Recently one of our servers suffered a hard disk failure. I copied everything to the new drive except quota.conf. Now, I don't have any access to quota.conf on the old hard drive. How can I reset everyone's quota to their plan's default? I tried modifying an account's quota, it said "The quota has been set to xxx" but when I check the account again, it still says "Unlimited" disk space.

    Can anyone help please?
    HostingZero.com - Free Web Hosting. Up to 10 GB disk space / 100 GB bandwidth. cPanel with Fantastico

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    There are a couple of issues:

    1. Recreate /etc/quota.conf:

    The file should be owned by root and chmod 644. Recreate it in the following format:
    account=quota

    Where account is the accountname and quota is the value in megabytes.

    2. Make sure the OS quotas are actually working

    Run /scripts/fixquotas this will check that the OS quotas are running and will also run /scripts/resetquotas which reads the quota.conf file

    I'll also attach a perl script that I wrote that will recreate the quota.conf file with the default quotas for the users package so long as they have been set up correctly.
    Attached Files
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Jun 2005
    Posts
    28

    Default

    Thanks so much! That worked well. Much appreciated
    HostingZero.com - Free Web Hosting. Up to 10 GB disk space / 100 GB bandwidth. cPanel with Fantastico

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 06-22-2009, 08:29 AM
  2. Unable read /etc/passwd
    By alexisg_2007 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-05-2008, 11:57 PM
  3. Error: Unable to read /etc/cpupdate.conf, permission denied
    By <esc> in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-05-2006, 02:47 AM
  4. /scripts/cpbackup line 399, <PWCACHEENT> line 28.
    By demomen in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-30-2005, 05:48 AM
  5. Unable to locate httpd.conf at /scripts/wwwacct line 1319.
    By ndj1022 in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 05-08-2003, 07:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube