Installation guide
4. Use the edquota command to activate the quota editor and create a
quota entry for each user.
For each user or group you specify, edquota creates a temporary
ASCII file that you edit with the vi editor. Edit the file to include
entries for each file system with quotas enforced, the soft and hard
limits for blocks and inodes (or files), and the grace period.
If you specify more than one user name or group name in the edquota
command line, the edits will affect each user or group. You can also
use prototypes that allow you to quickly set up quotas for groups of
users. Refer to the edquota
(8) reference page for more information.
5. Use the quotaon command to activate the quota system. Refer to the
quotaon
(8) reference page for more information.
6. To check and enable disk quotas during system startup, use the
following command to set the disk quota configuration variable in the
/etc/rc.config file:
# /usr/sbin/rcmgr set QUOTA_CONFIG yes
If you want to turn off quotas, use the quotaoff command. Also, the
umount command turns off quotas before it unmounts a file system. Refer
to the quotaoff
(8) reference page for more information.
7.7.4 Verifying Disk Quotas
If you are enforcing user disk quotas, you should periodically verify your
quota system. You can use the quotacheck, quota, and repquota
commands to compare the established limits with actual use.
The quotacheck command verifies that the actual block use is consistent
with established limits. You should run the quotacheck command twice:
when quotas are first enabled on a file system and after each reboot. The
command gives more accurate information when there is no activity on the
system.
The quota command displays the actual block use for each user in a file
system. Only the root user can execute the quota command.
The repquota command displays the actual disk use and quotas for the
specified file system. For each user, the current number of files and the
amount of space (in KB) is displayed along with any quotas.
If you find it necessary to change the established quotas, use the edquota
command, which allows you to set or change the limits for each user.
Refer to the quotacheck
(8), quota(8), and repquota(8) reference pages for
more information on disk quotas.
7–26 Administering the UNIX File System