Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 20376 Details for
Bug 32673
About the rc script of quota on Security Guide
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to the gentoo security guide
gentoo-security.diff-quotas (text/plain), 1.76 KB, created by
Sven Vermeulen (RETIRED)
on 2003-11-07 07:26:45 UTC
(
hide
)
Description:
Patch to the gentoo security guide
Filename:
MIME Type:
Creator:
Sven Vermeulen (RETIRED)
Created:
2003-11-07 07:26:45 UTC
Size:
1.76 KB
patch
obsolete
>--- official/gentoo-security.xml 2003-11-06 15:34:20.000000000 +0100 >+++ gentoo-security.xml 2003-11-07 16:24:33.000000000 +0100 >@@ -968,48 +968,17 @@ > > <p> > This step has to be done on every partition where quotas are enabled. After >-adding and configuring the quota files, we need to add a script to the run >-level that turns quotas on every time we boot. Copy and paste the following >-script to a file called <path>/etc/init.d/quotas</path>. Simply create the >-file (it does not exist) and make it executable. >+adding and configuring the quota files, we need to add the <c>quoates</c> script >+to the default runlevel. > </p> > >-<pre caption="/etc/init.d/quotas"> >-#!/sbin/runscript >- >-depend() { >- need localmount >-} >- >-start() { >- if [ -x /sbin/quotacheck ] >- then >- ebegin "Checking quotas. This may take some time." >- /sbin/quotacheck -avug >- eend $? >- fi >- if [ -x /sbin/quotaon ] >- then >- ebegin "Turning on quota." >- /sbin/quotaon -avug >- eend $? >- fi >-} >- >-stop() { >- if [ -x /sbin/quotaon ] >- then >- ebegin "Turning off quota." >- /sbin/quotaoff >- eend $? >- fi >-} >+<pre caption="Adding quotas to the default runlevel"> >+# <i>rc-update add quotas default</i> > </pre> > > <p> >-Make it executeable with <c>chmod +x /etc/init.d/quotas</c> and add it to the >-run level with <c>rc-update add quotas default</c> and check the quotas once a >-week by adding the following line to <path>/etc/crontab</path>. >+We will now configure the system to check the quotas once a >+week by adding the following line to <path>/etc/crontab</path>: > </p> > > <pre caption="Adding quota check to crontab">
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32673
:
20376
|
20379