Koozali.org: home of the SME Server

Show quota

Offline meelis

  • ****
  • 112
  • +0/-0
Show quota
« on: April 27, 2012, 08:21:19 AM »
How can i show users they quotas in horde? It is possible?

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Show quota
« Reply #1 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.