The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    446
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  2. yapluka

    yapluka Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    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 :)
     
  3. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
  4. yapluka

    yapluka Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    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
     
  5. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    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!!!
     
  6. fenixer

    fenixer Well-Known Member

    Joined:
    Feb 23, 2007
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
Loading...

Share This Page