Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

The quota for users is incorrect

Discussion in 'General Discussion' started by upsforum, Apr 21, 2007.

  1. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    470
    Likes Received:
    0
    Trophy Points:
    166
    HI,

    I have an user account set up like resellers and he have active an only account, in your account he over 4 GByte of files but on WHM in quota usage for this users is 15 MByte of 1500 MByte

    My problem is that this user use 2500 MByte over quota and I don't see
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. yapluka

    yapluka Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    France
    cPanel Access Level:
    Root Administrator
    You may want to check the ownership of the files in this account : if they're owned by "nobody" they won't count against the quota, for example.

    Good luck :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    470
    Likes Received:
    0
    Trophy Points:
    166
    I think that the problem is this , in fact if users use upload form for send a files on server this files marked like NOBODY owner.

    Is possible resolve this problem?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. yapluka

    yapluka Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    France
    cPanel Access Level:
    Root Administrator
    You mainly have 2 options :

    1) Install phpsuexec so all uploaded files are owned by your user

    2) Run the following in a cronjob to automatically chown the files :
    Code:
    cd /var/cpanel/users;for user in *;do chown -R $user.$user /home/$user/public_html/*;done
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    470
    Likes Received:
    0
    Trophy Points:
    166
    install phpsuexec is very hard, I have 120 users accounts active with various php applications, from modexec to phpsuexec this make the some problems.

    This cron change the chown property on all users?

    thank you!!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. fenixer

    fenixer Well-Known Member

    Joined:
    Feb 23, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    156
    Hello...

    If you use this cron, and somebody use a CMS, suddenly he may not upload files or configure extensions or modules, just because upload folders may not have 777 permissions for nobody writting....

    It would be good to see which way people does configure CMS before aplying changes to the owner, and verifying there are 777 permissions before changing a nobody folder ownership.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice