|
From: Vernon J. S. <ve...@ve...> - 2005-09-19 22:11:52
|
Here is a link that will help you with that. http://www.swelltech.com/support/virtual-servers/index.html#quotas Quotas Setup Quotas on Linux are tricky, not because they are difficult to setup, but because they are so poorly documented, and what documentation exists is = more often than not incorrect to the point of not working. If you are using a relatively recent Linux version, the following instructions should work without difficulty. Guidelines for Quotas Virtualmin uses standard system disk quotas to limit user disk usage. Because of this, all user data must reside on the same disk partition so that the system can maintain an accurate accounting of disk use. The = /home partition is an excellent choice for the user data directory, due to = UNIX tradition and user expectations. This is why we moved the mail spool to = a directory on the /home partition in the mail server sections, so that = all mail will reside on the same partition. Editing fstab The first step to enabling quotas is to turn them on in the /etc/fstab configuration file. You can do this in Webmin by browsing to the = System:Disk and Network Filesystems module. Then click on the /home partition link. Finally, locate the Use Quotas? option and select User and Group from = the dropdown list. Save your changes. You can also make this change manually, by editing the /etc/fstab in = your favorite editor, and modifying the /home mount point entry to look = something like this: /dev/hda2 /home ext3 defaults,usrquota,grpquota 1 1 The important bit of the above example is the addition of the usrquota = and grpquota directives. These two items enable both user and group quotas. After adding quota support to your fstab, you'll need to remount the filesystem, or reboot the system, to make the changes take effect. ------------------------------------------ Vernon J. Spangler http://www.vernonspangler.org/ (520) 512-8410 Home (520) 990-1863 Cell ve...@ve... ------------------------------------------ Powered by Windows XP Professional Sent by Microsoft Outlook 2003 -----Original Message----- From: Vern [mailto:ve...@cw...]=20 Sent: Monday, September 19, 2005 3:00 PM To: Webmin List Subject: [webmin-l] Using User Quotas I have=A0users that I am allowing to store files on my server. How do I = go about=20 limiting the amount of storage space they are using? I do have User = Quotas set to User=20 and Group, however I don't know how to limit each user specifically. Thanks ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. = Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php - Forwarded by the Webmin mailing list at = web...@li... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |