nightmorph 11/03/02 08:52:47 Modified: shb-limits.xml Log: remove outdated reiserfs info. update quota stuff for the journaled filesystem examples in the code listings, and for the more recent vfs format
Revision Changes Path 1.10 xml/htdocs/doc/en/security/shb-limits.xml file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/security/shb-limits.xml?rev=1.10&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/security/shb-limits.xml?rev=1.10&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/security/shb-limits.xml?r1=1.9&r2=1.10 Index: shb-limits.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/security/shb-limits.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- shb-limits.xml 26 Apr 2010 22:14:45 -0000 1.9 +++ shb-limits.xml 2 Mar 2011 08:52:47 -0000 1.10 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='UTF-8'?> -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/security/shb-limits.xml,v 1.9 2010/04/26 22:14:45 nightmorph Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/security/shb-limits.xml,v 1.10 2011/03/02 08:52:47 nightmorph Exp $ --> <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> <!-- The content of this document is licensed under the CC-BY-SA license --> @@ -7,8 +7,8 @@ <sections> -<version>1.5</version> -<date>2010-04-26</date> +<version>2</version> +<date>2011-03-02</date> <section id="limits_conf"> <title>/etc/security/limits.conf</title> @@ -75,20 +75,15 @@ <title>Quotas</title> <body> -<warn> -Make sure the file systems you are working with support quotas. In order to use -quotas on ReiserFS, you must patch your kernel with patches available from <uri -link = -"ftp://ftp.namesys.com/pub/reiserfs-for-2.4/testing/quota-2.4.20">Namesys</uri>. User -tools are available from <uri link = -"http://www.sf.net/projects/linuxquota/">the Linux DiskQuota -project</uri>. While quotas do work with ReiserFS, you may encounter other -issues while trying to use them--you have been warned! -</warn> +<impo> +Make sure the file systems you are working with support quotas. User tools are +available from <uri link = "http://www.sf.net/projects/linuxquota/">the Linux +DiskQuota project</uri>. +</impo> <p> Putting quotas on a file system restricts disk usage on a per-user or per-group -basis. Quotas are enabled in the kernel and added to a mount point +basis. Quotas are enabled in the kernel and added to a mount point in <path>/etc/fstab</path>. The kernel option is enabled in the kernel configuration under <c>File systems->Quota support</c>. Apply the following settings, rebuild the kernel and reboot using the new kernel. @@ -104,9 +99,9 @@ /dev/sda1 /boot ext2 noauto,noatime 1 1 /dev/sda2 none swap sw 0 0 /dev/sda3 / reiserfs notail,noatime 0 0 -/dev/sda4 /tmp ext3 noatime,nodev,nosuid,noexec,usrquota,grpquota 0 0 -/dev/sda5 /var ext3 noatime,nodev,usrquota,grpquota 0 0 -/dev/sda6 /home ext3 noatime,nodev,nosuid,usrquota,grpquota 0 0 +/dev/sda4 /tmp ext3 noatime,nodev,nosuid,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv=1 0 0 +/dev/sda5 /var ext3 noatime,nodev,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv1 0 0 +/dev/sda6 /home ext3 noatime,nodev,nosuid,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv1 0 0 /dev/sda7 /usr reiserfs notail,noatime,nodev,ro 0 0 /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0 proc /proc proc defaults 0 0
