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!

file containing quotas?

Discussion in 'General Discussion' started by jason, Nov 4, 2001.

  1. jason

    jason Member

    Joined:
    Sep 4, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    301
    Anybody know where the quotas are stored? I need to know the file(s). ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    316
    Usually /home/aquota.user
     
  3. jason

    jason Member

    Joined:
    Sep 4, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    301
    How about current diskspace usage??!?!?!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. jason

    jason Member

    Joined:
    Sep 4, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    301
    anybody know?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    316
    [quote:0f69234459]How about current diskspace usage??!?!?!
    [/quote:0f69234459] Do you mean you want to know disk space used by each user from the command line? Or do you want to know the file that keeps disk space usage stats?
     
  6. jason

    jason Member

    Joined:
    Sep 4, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    301
    the file that keeps disk space usage stats
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. jason

    jason Member

    Joined:
    Sep 4, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    301
    Maybe a admin would know this??? or anybody?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. MichaelShanks

    MichaelShanks Well-Known Member
    PartnerNOC

    Joined:
    Aug 20, 2001
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    316
    you will have a file in each root of a partition (ie /home and /usr...) called quota.user which holds relevent data on used space by a particular user,

    The file which contains information about quotas assigned to users is /etc/quota.conf

    [I typed in my default sig editing it out as I remember fixing it :O)]

    [Edited on 11/21/01 by MichaelShanks]
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    316
    [quote:a0d4467541]you will have a file in each root of a partition (ie /home and /usr...) called quota.user which holds relevent data on used space by a particular user,
    [/quote:a0d4467541]Is there a difference between aquota.user and quota.user? My Redhat 7.1 has aquota.user (non-functional at present :D).
     
  10. jason

    jason Member

    Joined:
    Sep 4, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    301
    [quote:0f86e39a1e] you will have a file in each root of a partition (ie /home and /usr...) called quota.user which holds relevent data on used space by a particular user,

    The file which contains information about quotas assigned to users is /etc/quota.conf [/quote:0f86e39a1e]

    The /etc/quota.conf is fine, but the quota.user files are encypted... is there a non-encypted version?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. MichaelShanks

    MichaelShanks Well-Known Member
    PartnerNOC

    Joined:
    Aug 20, 2001
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    316
    they arnt encrypted it is the format the quota program uses

    /sbin/quota

    there may be something you can do with that, I haven\'t really looked in quotas any more thn getting them to work

    Mike
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    316
    [quote:6c7a5b1bd9] there may be something you can do with that, I haven\'t really looked in quotas any more than getting them to work
    [/quote:6c7a5b1bd9]How did you get them to work? ;)
     
  13. jason

    jason Member

    Joined:
    Sep 4, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    301
    Is there anyway I can read the quotas into a php script?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. digitalexploits

    digitalexploits Registered

    Joined:
    Sep 15, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    Yes Please

    My question exactly...I'm with jag and don't have root access. I'm also wondering if the quotas can be read into a script. I'm having trouble finding the quota file...maybe a level up from what I can access?
     
  15. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    166
    Only root can access quota data - from a security point of view it wouldn't be good to let other users access such information, regardless of the users' intentions.

    Using a PHP script, you will only be able to access files within /home/yourusername, assuming that your host has implemented standard PHP security considerations.

    If you are not the root user, the only option you have is trying to convince your host to write a custom script that can be securely run by normal users which will extract the data you require. I wouldn't ordinarily expect a host to do so easily.

    Please feel free to PM me with your requirements as I should be able to set something up for you.
     
    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