https://help.directadmin.com/item.php?id=42
Cannot open quotafile /home1/aquota.user: No such file or directory
repquota: Not all specified mountpoints are using quota.
https://forums.centos.org/viewtopic.php?t=50869
touch /home1/aquota.user
touch /home1/aquota.group
mount -vo remount /home1
quotacheck -vgum /home1
apache_public_html=0
home_override_list=/home:/home2:/home3
/etc/default/useradd
HOME=/home
Unable to open ./data/users/new/du_breakdown.list for reading. No such file or directory
To check whether quota package is installed or not
rpm –qa quota
or
yum list quota
Disk quota configuration in four steps
Enable quota
Remount file system
Create quota files
Configure quota policy
Enabling quota
To mount all partitions in file system at boot time, linux uses /etc/fstab file. This file contains six necessary information about the partition.
- What to mount: /dev/sda1 or UUID or device label
- Where to mount: / or /boot or /home or swap
- File system: xfs or swap or ext4
- Options: defaults, usrquota, grpquota
- Dump support: 0 or 1
- Automatic check:
vi /etc/fstab
Add defaults,usrquota,grpquota in option four. Save and restart system.
Remounting file system
mount –o remount /home
cat /etc/fstab
df -h
mount
/usr/local/directadmin/directadmin c | grep quota_partition
/usr/local/directadmin/directadmin c | grep use_xfs_quota
repquota `/usr/local/directadmin/directadmin c | grep quota_partition= | cut -d= -f2`
ls -lad /home/tmp
ls -la /home/tmp