|
From: Vern <ve...@cw...> - 2005-09-19 22:00:17
|
I have=A0users that I am allowing to store files on my server. How do I g= o about=20 limiting the amount of storage space they are using? I do have User Quota= s set to User=20 and Group, however I don't know how to limit each user specifically. Thanks |
|
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 |
|
From: Vern <ve...@cw...> - 2005-09-19 22:48:06
|
As I mentioned I have already enabled Quotas, what I need to know (withou= t using=20 Virtualmin) how do I say that UserX can only use 100 MEGs. Thanks ---------- Original Message -----------=20 From: "Vernon J. Spangler" <ve...@ve...>=20 To: <web...@li...>=20 Sent: Mon, 19 Sep 2005 15:11:44 -0700=20 Subject: RE: [webmin-l] Using User Quotas > Here is a link that will help you with that.=20 > http://www.swelltech.com/support/virtual-servers/index.html#quotas=20 >=20 > Quotas Setup=20 >=20 > Quotas on Linux are tricky, not because they are difficult to setup, bu= t=20 > because they are so poorly documented, and what documentation exists is= more=20 > often than not incorrect to the point of not working. If you are using = a=20 > relatively recent Linux version, the following instructions should work= =20 > without difficulty.=20 > Guidelines for Quotas=20 >=20 > Virtualmin uses standard system disk quotas to limit user disk usage.=20 > Because of this, all user data must reside on the same disk partition s= o=20 > that the system can maintain an accurate accounting of disk use. The /h= ome=20 > partition is an excellent choice for the user data directory, due to UN= IX=20 > tradition and user expectations. This is why we moved the mail spool to= a=20 > directory on the /home partition in the mail server sections, so that a= ll=20 > mail will reside on the same partition.=20 > Editing fstab=20 >=20 > The first step to enabling quotas is to turn them on in the /etc/fstab=20 > configuration file. You can do this in Webmin by browsing to the System= :Disk=20 > and Network Filesystems module. Then click on the /home partition link.= =20 > Finally, locate the Use Quotas? option and select User and Group from t= he=20 > dropdown list. Save your changes.=20 >=20 > You can also make this change manually, by editing the /etc/fstab in yo= ur=20 > favorite editor, and modifying the /home mount point entry to look some= thing=20 > like this:=20 >=20 > /dev/hda2 =A0 =A0 =A0/home =A0 =A0 =A0 =A0 =A0 ext3 =A0 =A0defaults,usr= quota,grpquota 1 1=20 >=20 > The important bit of the above example is the addition of the usrquota = and=20 > grpquota directives. These two items enable both user and group quotas.= =20 >=20 > After adding quota support to your fstab, you'll need to remount the=20 > filesystem, or reboot the system, to make the changes take effect.=20 >=20 > ------------------------------------------=20 > Vernon J. Spangler=20 > http://www.vernonspangler.org/=20 > (520) 512-8410 Home=20 > (520) 990-1863 Cell=20 > ve...@ve...=20 > ------------------------------------------=20 > =A0Powered by Windows XP Professional=20 > =A0 =A0Sent by Microsoft Outlook 2003=20 > -----Original Message-----=20 > From: Vern [mailto:ve...@cw...]=20 > Sent: Monday, September 19, 2005 3:00 PM=20 > To: Webmin List=20 > Subject: [webmin-l] Using User Quotas=20 >=20 > I have=A0users that I am allowing to store files on my server. How do I= go=20 > about=20 > limiting the amount of storage space they are using? I do have User Quo= tas=20 > set to User=20 > and Group, however I don't know how to limit each user specifically.=20 >=20 > Thanks=20 >=20 > -------------------------------------------------------=20 > SF.Net email is sponsored by:=20 > Tame your development challenges with Apache's Geronimo App Server. Dow= nload=20 > it for free - -and be entered to win a 42" plasma tv or your very own=20 > Sony(tm)PSP. =A0Click here to play: http://sourceforge.net/geronimo.php= =20 > -=20 > Forwarded by the Webmin mailing list at web...@li...= .net=20 > To remove yourself from this list, go to=20 > http://lists.sourceforge.net/lists/listinfo/webadmin-list=20 >=20 > -------------------------------------------------------=20 > SF.Net email is sponsored by:=20 > Tame your development challenges with Apache's Geronimo App Server. Dow= nload=20 > it for free - -and be entered to win a 42" plasma tv or your very own=20 > Sony(tm)PSP. =A0Click here to play: http://sourceforge.net/geronimo.php= =20 > -=20 > Forwarded by the Webmin mailing list at web...@li...= .net=20 > To remove yourself from this list, go to=20 > http://lists.sourceforge.net/lists/listinfo/webadmin-list=20 ------- End of Original Message ------- |
|
From: Craig W. <cra...@az...> - 2005-09-19 22:57:15
|
On Mon, 2005-09-19 at 18:47 -0400, Vern wrote: > As I mentioned I have already enabled Quotas, what I need to know (without using > Virtualmin) how do I say that UserX can only use 100 MEGs. ---- can you set that in System Tab -> Disk Quotas ??? Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |
|
From: Vern <ve...@cw...> - 2005-09-19 23:23:55
|
That's it thanks! ---------- Original Message ----------- From: Craig White <cra...@az...> To: web...@li... Sent: Mon, 19 Sep 2005 15:56:48 -0700 Subject: RE: [webmin-l] Using User Quotas > ---- > can you set that in > > System Tab -> Disk Quotas ??? > > Craig |
|
From: Vern <ve...@cw...> - 2005-09-19 23:28:32
|
One more question... What's the difference between: Soft kilobyte limit Hard kilobyte limit Soft file limit Hard file limit Thanks |
|
From: Jamie C. <jca...@we...> - 2005-09-19 23:36:47
|
On Tue, 2005-09-20 at 09:28, Vern wrote: > One more question... > > What's the difference between: > > Soft kilobyte limit This is the amount of disk space that can be used before a warning is displayed. > Hard kilobyte limit This is the amount of space that cannot be exceeded. > Soft file limit This is the number of files that the user can own before a warning is displayed. > Hard file limit This is the number of files owned by the user that cannot be exceeded. The file limits aren't generally used very much, although they can be useful on filesystems that have a limit on the number of inodes (and thus distinct files) that can exist. - Jamie > 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 |
|
From: Vern <ve...@cw...> - 2005-09-19 23:43:34
|
Thanks. You guys are the best. ---------- Original Message ----------- From: Jamie Cameron <jca...@we...> To: web...@li... Sent: 20 Sep 2005 09:36:30 +1000 Subject: RE: [webmin-l] Using User Quotas > On Tue, 2005-09-20 at 09:28, Vern wrote: > > One more question... > > > > What's the difference between: > > > > Soft kilobyte limit > > This is the amount of disk space that can be used before a warning is > displayed. > > > Hard kilobyte limit > > This is the amount of space that cannot be exceeded. > > > Soft file limit > > This is the number of files that the user can own before a warning is > displayed. > > > Hard file limit > > This is the number of files owned by the user that cannot be exceeded. > > The file limits aren't generally used very much, although they can be > useful on filesystems that have a limit on the number of inodes (and > thus distinct files) that can exist. > > - Jamie |
|
From: Vernon J. S. <ve...@ve...> - 2005-09-20 00:29:20
|
Virtualmin has a feature in the module configuration to allow you set a standard and as well as setting each account individually. ------------------------------------------ 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...] Sent: Monday, September 19, 2005 4:43 PM To: web...@li... Subject: RE: [webmin-l] Using User Quotas Thanks. You guys are the best. ---------- Original Message ----------- From: Jamie Cameron <jca...@we...> To: web...@li... Sent: 20 Sep 2005 09:36:30 +1000 Subject: RE: [webmin-l] Using User Quotas > On Tue, 2005-09-20 at 09:28, Vern wrote: > > One more question... > > > > What's the difference between: > > > > Soft kilobyte limit > > This is the amount of disk space that can be used before a warning is > displayed. > > > Hard kilobyte limit > > This is the amount of space that cannot be exceeded. > > > Soft file limit > > This is the number of files that the user can own before a warning is > displayed. > > > Hard file limit > > This is the number of files owned by the user that cannot be exceeded. > > The file limits aren't generally used very much, although they can be > useful on filesystems that have a limit on the number of inodes (and > thus distinct files) that can exist. > > - Jamie ------------------------------------------------------- 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 |