Quota:cannot be set and update
Hi All:
I opend an user account.
Once I update the quota of this account, I cannot see any effect by the command "repquota -a".
If I use the "quotacheck -avugm", the update take effect.
An error message occurs:
Cannot get exact used space... Results might be inaccurate.
quotacheck: Scanning /dev/hda2 [/] done
quotacheck: Checked 724 directories and 12253 files
quotacheck: Scanning /dev/hdc1 [/data1] done
quotacheck: Checked 3 directories and 4 files
quotacheck: Scanning /dev/hdd1 [/data2] done
quotacheck: Checked 2 directories and 1 files
Question 1:
Is it necessary to run the command "quotacheck -avugm" always?
Is it normal to see the error msg "Results might be inaccurate"?
When I log in as the user,
type command "quota".
The error message is:
quota: Can't open quotafile //aquota.user: Permission denied
quota: Can't open quotafile /data1/aquota.user: Permission denied
quota: Can't open quotafile /data2/aquota.user: Permission denied
Disk quotas for user cck (uid 1001): none
Thus, the user cannot check his own quota setting.
Question 2:
What's wrong with my system?
Here is the /etc/fstab for your reference:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda2 / ext3 defaults,usrquota 0 2
/dev/hda1 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0
/dev/hdc1 /data1 ext3 defaults,usrquota 0 2
/dev/hdd1 /data2 ext3 defaults,usrquota 0 2
The mount point /data1 and /data2 are for general users.
Thanks.
|