Howto: Enable Logging for Quota

How to:

Enable quota Logging for UCS.

Solution

Set the UCR variable by
ucr set quota/logfile="/var/log/univention/quota.log"
This will log the synchronization from LDAP to the quotas in the filesystem for debugging purposes. For example:

Won't set quota for system-users (root has UID 0)

-------------------------------------------------------- start
Thu May 23 11:07:26 CEST 2019
Set quota for user frank.miller
Found 981 shares and 4 mountpoints
Do not set/update quota for mountpoint "/home/homes"
Do not set/update quota for mountpoint "/home/homes/mitarbeiter"
Do not set/update quota for mountpoint "/home/homes/lehrer"
Do not set/update quota for mountpoint "/home/homes/spezial"
-------------------------------------------------------- exit

Note:
The configured logfile is not included in the daily logrotate task. Thus, the file will grow without limit. See the according bug.

Mastodon