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.

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:
    1
    Anybody know where the quotas are stored? I need to know the file(s). ;)
     
  2. moronhead

    moronhead Well-Known Member

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

    jason Member

    Joined:
    Sep 4, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    How about current diskspace usage??!?!?!
     
  4. jason

    jason Member

    Joined:
    Sep 4, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    anybody know?
     
  5. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    [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:
    1
    the file that keeps disk space usage stats
     
  7. jason

    jason Member

    Joined:
    Sep 4, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Maybe a admin would know this??? or anybody?
     
  8. MichaelShanks

    MichaelShanks Well-Known Member
    PartnerNOC

    Joined:
    Aug 20, 2001
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    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]
     
  9. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    [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:
    1
    [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?
     
  11. MichaelShanks

    MichaelShanks Well-Known Member
    PartnerNOC

    Joined:
    Aug 20, 2001
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  12. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    [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:
    1
    Is there anyway I can read the quotas into a php script?
     
  14. digitalexploits

    digitalexploits Registered

    Joined:
    Sep 15, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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:
    36
    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.
     
Loading...

Share This Page