2

I have setup quota for home directories on ubuntu 10.04 server. I followed these tutorials: 5 Steps to Setup User and Group Disk Quota and Disk Quota This code I used at fstab file:

/dev/sda1 /home ext4 defaults,usrjquota=aquota.user,grpjquota=aquota.grp,jqfmt=vfsv0 1 1

I have doubts about whether following steps are necessary: Adding quotaon -a >/dev/null 2>&1 to /etc/rc.local and adding quotacheck -avug to /etc/cron.daily/quotacheck

nixnotwin
  • 1,543
  • 5
  • 35
  • 55

1 Answers1

3

Ubuntu takes care of installing the startup script and periodic quota warnings. Look at the filelist of the quota package, /etc/init.d/quota turns quotas on:

on=/sbin/quotaon
# snip
ALLFLAGS=-aug
# snip
$on $ALLFLAGS

The cron file at /etc/cron.daily/quota runs /usr/sbin/warnquota. Note that quota's are working realtime, warnquota mails the user if they've exceeded their soft limit.

Lekensteyn
  • 6,241
  • 6
  • 39
  • 55
  • quotacheck and warnquota are two different things ! The first one checks if the quota files are not corrupted. – ChennyStar Sep 08 '21 at 11:40