Quota

Discussion in 'Developers' Forum' started by alexillsley, Apr 15, 2007.

  1. alexillsley

    alexillsley New Member

    Hi,
    how would i make the quota on a per user basis instead of a site basis.
    e.g give a user 100mb for all sites instead of giving each site 100mb?
    Thanks,
    Alex
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You're talking of customers instead of system users (because only a customer in ISPConfig can have multiple web sites).
    Because a customer is an ISPConfig-only user, but no system user, this isn't possible.
     
  3. alexillsley

    alexillsley New Member

    So can the linux system quota only be placed on users and not on directorys?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes. Quota can only assigned to users and groups, not to directories.

    linux userquota = ISPConfig userquota
    linux groupquota = ISPConfig website quota

    Linux does not support hierarchical quotas, so you can not have a groupquota nested inside another group quota or in other words, a group can not be a member of another group.
     
  5. alexillsley

    alexillsley New Member

    if i made so that all a users sites were in 1 group then applied a quota would that work?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, but you will loose the capability to have any website quotas.
     
  7. alexillsley

    alexillsley New Member

    How can i make ispconfig put all webs in the same group?

    Thanks,
    Alex
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    You will have to rewrite large parts of the server code. It is too complicated to explain this here in the forum, please have a look at the files in /root/ispconfig/scripts/ and the subfolders.
     
  9. alexillsley

    alexillsley New Member

    Will only scripts in that folder /root/ispconfig/scripts/ need rewriting or will the folders in /home/admispconfig also need rewriting?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    This depends on your interface implementation as /home/admispconfig conatins only interface files. I guess you will have to chnage a few files in /home/admispconfig too.
     
  11. alexillsley

    alexillsley New Member

    Does anything rely on the group of the site?

    So if i just change the line where it sets the group when it creates and edits the site, will it make anything else stop working?

    Thanks,
    Alex
     

Share This Page