set quotas for virtual server USER

Posted on 2004-11-13
Last Modified: 2013-12-21
My SOlaris 9  system is using Apache2 as a webserver and Webmin as a ISP control (to create virtual server)

I used webmin to create USER with home directory is located at /usr/local/apahce2/htdocs/user_name

How can I set quotas for those USERS coresponding to theirs' home directories?

Webmin does incude Disk Quotas; however, that module can only set quota for / and /home, not /usr/local/apache2/htdocs/user_name

Can the experts help me?
I am trying to build up 2 servers by myself and those problems couter me

Thanks alo
best regard
Question by:valleytech
    LVL 38

    Accepted Solution


       To set quota on Solaris,
    1. Edit the /etc/vfstab file as root, and add "rq" flag to the mount options field for /usr (or /usr/local).
        This enables quotas for the file system.
    2. # cd /usr (or /usr/local, depends on you mount as /usr or /usr/local)
    3. # touch quotas; chmod u+rw quotas
    4. # edquota <user_name>
    5. # quotaon /usr ( or /usr/local )
    6. Check the quota
     # quota -v <user_name>

    LVL 38

    Assisted Solution

    Please following the instructions in the following page to setup the quota:

    PS: Have a look at you /etc//etc/vfstab  file to find out the mount point (filesystem)
         for /usr/local/apache2/htdocs then setup the quota.

         Pay attention to "Soft Limits vs. Hard Limits" and "How to Set Up Quotas for Multiple Users "

        The instruction in the above page is for Solaris 7, it also apply to Solaris 9, you can
    get the Sun docs from (for Solaris x):

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
    Are you looking to recover an email message or a contact you just deleted mistakenly? Or you are searching for a contact that you erased from your MS Outlook ‘Contacts’ folder and now realized that it was important.
    To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
    This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now