You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Limit the amount of disk space a user or group can use on a filesystem. Without such limits, a user could fill up the machine’s disk and cause problems for other users and services.
apt-get update
apt-get install quota
## Install kernel quota modules.
if find /lib/modules/$(uname -r) -type f -name '*quota_v*.ko*' > /dev/null 2>&1; then
echo "Kernel quota modules already exists";
else
echo "Kernel quota modules not found. Installing...";
apt-get install linux-image-extra-virtual
fi
Limit the amount of disk space a user or group can use on a filesystem. Without such limits, a user could fill up the machine’s disk and cause problems for other users and services.
Add usrquota,grpquota to fstab
nano /etc/fstab
something like this
UUID=a8254f0f-c87f-4299-88ee-7e9aea768cbe / ext4 errors=remount-ro,usrquota,grpquota 0 1
sudo mount -o remount /
Verify
cat /proc/mounts | grep 'quota,usrquota,grpquota'
Enabling quota
quotacheck -ugm /
sudo quotaon -v /
Set user quota
setquota OPTIONS <user|group|project> -a|
setquota -u lemper 200M 220M 0 0 /
Generate quota reports
repquota -s /
References
The text was updated successfully, but these errors were encountered: