Users can't get own quota information - CentOS 5
Hello,
CentOS 5 multiuser environment, SELinux enabled, /home and /tmp noexec.
I have recently set up a host for our users to process and store log files instead of using their own desktop machines. The previous incarnation of this was constantly short of space, so I have implemented user quotas.
I have not been able to find a way to notify a user of their current quota usage, except for warnquota, and for various reasons notifying the users via email is not appropriate (even to their mail account on the machine itself). Ideally I would like to output the user's current usage on login and have the user able to generate the report themselves.
At the moment, I have a cron job that runs every 5 minutes that greps the relevant info from repquota and writes to to a (read only) .quota file in the root of their home directories. I have added a script to /etc/bashrc to detect whether this file exists and if so cat it on login.
Is there any way to make the report real-time, or is there a way for a user to initiate their own report?
Thanks,
sgb
|