Red Hat Bugzilla – Bug 26380
quotacheck -a doesn't set up quota.group database
Last modified: 2007-04-18 12:31:15 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i686)
According to the quotacheck(8) man page, "quotacheck -a" should check both
user and group quotas for the filesystems mentioned in /etc/fstab.
Actually, it only checks USER quotas. It turns out that to set up group
quotas with the -a option, you also need to specify the -g option (contrary
to the documentation).
Steps to Reproduce:
Assume we have a /home partition:
1. Set usrquota,grpquota mount options for /home in /etc/fstab.
2. `mount -o remount /home`
3. quotacheck -a
Actual Results: A /home/quota.user file is created, but no
/home/quota.group file is created. If both files exist, only
/home/quota.user is updated.
Expected Results: According to the man page, both /home/quota.user and
/home/quota.group should be created or updated accordingly.
By default just using `quotacheck` implies `quotacheck -u`, and this is
correctly documented. However, it's clear from the man page that
`quotacheck -a` is supposed to imply the same behavior currently exhibited
by `quotacheck -a -g -u`.
Quotes from quotacheck(8):
> -u This flag tells the program to scan the disk and to
> count the files and directories used by a certain
> uid. This is the default action.
> -g This flag forces the program to count the the files
> and directories used by a certain gid.
> -a Check all of the quotas for the filesystems men-
> tioned in /etc/fstab. Both user and group quotas
> are checked as indictated by the /etc/fstab
This bug can probably be resolved either by changing the man page or by
changing quotacheck. :)
fixed in quota-2.00-2 and later by changing man page.