Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: meelis on April 27, 2012, 08:21:19 AM

Title: Show quota
Post by: meelis on April 27, 2012, 08:21:19 AM
How can i show users they quotas in horde? It is possible?
Title: Re: Show quota
Post by: mmccarn on April 27, 2012, 02:07:54 PM
I did some google searching and didn't see any easy/obvious way to turn on quota reports in Horde.

I dreamt up a cron script you could use, though:
Code: [Select]
#!/bin/bash
todom=`/sbin/e-smith/config get DomainName`
cd /home/e-smith/files/users
for u in *; do /usr/bin/quota -u $u |/bin/mail -s Quota\ Report $u@$todom; done

* Create /etc/cron.daily/quota_report.sh
* Add the content shown above
* set it to be executable ("chmod +x /etc/cron.daily/quota_report.sh")

Your users should now get daily emails showing their quota.