Translation

(itstool) path: sect2/screen
English
<prompt>#</prompt> <userinput>edquota -u test</userinput>
Quotas for user test:
/usr: kbytes in use: 65, limits (soft = 50, hard = 75)
inodes in use: 7, limits (soft = 50, hard = 60)
/usr/var: kbytes in use: 0, limits (soft = 50, hard = 75)
inodes in use: 0, limits (soft = 50, hard = 60)
0/3040
Context English Turkish (tr_TR) State
By default, quota files are stored in the root directory of the file system as <filename>quota.user</filename> and <filename>quota.group</filename>. Refer to <citerefentry><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more information. Specifying an alternate location for the quota files is not recommended.
Once the configuration is complete, reboot the system and <filename>/etc/rc</filename> will automatically run the appropriate commands to create the initial quota files for all of the quotas enabled in <filename>/etc/fstab</filename>.
In the normal course of operations, there should be no need to manually run <citerefentry><refentrytitle>quotacheck</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>quotaon</refentrytitle><manvolnum>8</manvolnum></citerefentry>, or <citerefentry><refentrytitle>quotaoff</refentrytitle><manvolnum>8</manvolnum></citerefentry>. However, one should read these manual pages to be familiar with their operation.
Setting Quota Limits
<primary>disk quotas</primary> <secondary>limits</secondary>
To verify that quotas are enabled, run:
<prompt>#</prompt> <userinput>quota -v</userinput>
There should be a one line summary of disk usage and current quota limits for each file system that quotas are enabled on.
The system is now ready to be assigned quota limits with <command>edquota</command>.
Several options are available to enforce limits on the amount of disk space a user or group may allocate, and how many files they may create. Allocations can be limited based on disk space (block quotas), number of files (inode quotas), or a combination of both. Each limit is further broken down into two categories: hard and soft limits.
<primary>hard limit</primary>
A hard limit may not be exceeded. Once a user reaches a hard limit, no further allocations can be made on that file system by that user. For example, if the user has a hard limit of 500 kbytes on a file system and is currently using 490 kbytes, the user can only allocate an additional 10 kbytes. Attempting to allocate an additional 11 kbytes will fail.
<primary>soft limit</primary>
Soft limits can be exceeded for a limited amount of time, known as the grace period, which is one week by default. If a user stays over their limit longer than the grace period, the soft limit turns into a hard limit and no further allocations are allowed. When the user drops back below the soft limit, the grace period is reset.
In the following example, the quota for the <systemitem class="username">test</systemitem> account is being edited. When <command>edquota</command> is invoked, the editor specified by <envar>EDITOR</envar> is opened in order to edit the quota limits. The default editor is set to <application>vi</application>.
<prompt>#</prompt> <userinput>edquota -u test</userinput>
Quotas for user test:
/usr: kbytes in use: 65, limits (soft = 50, hard = 75)
inodes in use: 7, limits (soft = 50, hard = 60)
/usr/var: kbytes in use: 0, limits (soft = 50, hard = 75)
inodes in use: 0, limits (soft = 50, hard = 60)
There are normally two lines for each file system that has quotas enabled. One line represents the block limits and the other represents the inode limits. Change the value to modify the quota limit. For example, to raise the block limit on <filename>/usr</filename> to a soft limit of <literal>500</literal> and a hard limit of <literal>600</literal>, change the values in that line as follows:
/usr: kbytes in use: 65, limits (soft = 500, hard = 600)
The new quota limits take effect upon exiting the editor.
Sometimes it is desirable to set quota limits on a range of users. This can be done by first assigning the desired quota limit to a user. Then, use <option>-p</option> to duplicate that quota to a specified range of user IDs (<acronym>UID</acronym>s). The following command will duplicate those quota limits for <acronym>UID</acronym>s <literal>10,000</literal> through <literal>19,999</literal>:
<prompt>#</prompt> <userinput>edquota -p test 10000-19999</userinput>
For more information, refer to <citerefentry><refentrytitle>edquota</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
Checking Quota Limits and Disk Usage
To check individual user or group quotas and disk usage, use <citerefentry><refentrytitle>quota</refentrytitle><manvolnum>1</manvolnum></citerefentry>. A user may only examine their own quota and the quota of a group they are a member of. Only the superuser may view all user and group quotas. To get a summary of all quotas and disk usage for file systems with quotas enabled, use <citerefentry><refentrytitle>repquota</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
Normally, file systems that the user is not using any disk space on will not show in the output of <command>quota</command>, even if the user has a quota limit assigned for that file system. Use <option>-v</option> to display those file systems. The following is sample output from <command>quota -v</command> for a user that has quota limits on two file systems.
Disk quotas for user test (uid 1002):
Filesystem usage quota limit grace files quota limit grace
/usr 65* 50 75 5days 7 50 60
/usr/var 0 50 75 0 50 60
<primary>grace period</primary>
In this example, the user is currently 15 kbytes over the soft limit of 50 kbytes on <filename>/usr</filename> and has 5 days of grace period left. The asterisk <literal>*</literal> indicates that the user is currently over the quota limit.
Quotas over NFS
<primary>NFS</primary>
Quotas are enforced by the quota subsystem on the <acronym>NFS</acronym> server. The <citerefentry><refentrytitle>rpc.rquotad</refentrytitle><manvolnum>8</manvolnum></citerefentry> daemon makes quota information available to <command>quota</command> on <acronym>NFS</acronym> clients, allowing users on those machines to see their quota statistics.

Loading…

No matching activity found.

Browse all component changes

Glossary

English Turkish (tr_TR)
hard drive sabit disk sürücüsü FreeBSD Doc
hard limit üst sınır FreeBSD Doc
quotas disk kotası FreeBSD Doc
root user kök kullanıcı FreeBSD Doc
soft limit alt sınır FreeBSD Doc
test sınamak FreeBSD Doc
user kullanıcı FreeBSD Doc
usr kullanıcı FreeBSD Doc

Source information

Source string comment
(itstool) path: sect2/screen
Flags
no-wrap
Source string location
book.translate.xml:36325
String age
8 months ago
Source string age
a year ago
Translation file
books/tr_TR/handbook.po, string 6055