You are not logged in.
Hello,
I am learning how to use Quotas (quota-tools) and so far I have been making tests and I know "how it works", but I have two questions:
a) how can I change the message that is written when the hard limit (or grace time expires) is reached?
$ echo "something" > hecl
-bash: echo: write error: Disk quota exceededb) When the soft limit is reached, it starts the grace time (I can check from the root, with repquota -a), but not messages are sent to the user that has reach that limit, and the only way to do that is executing from root "warnquota" (I configured to send not an email but an echo message to the tty1 where the user is logged).
And I don't like that behavior, because I have to manually say warnquota.
And if the program knows when an user has reached the soft limit, must be any way to do actions when it is reached, like " Warn the user that it is reached, and also the root in some log". How can I do that?
Thanks.
PS: What I want?
- Configure the message, like: "Clean your dedicated space. You have reached your maximum amount". For example.
- When the soft limit is reached, warn the user in the terminal "You have only XXX B of free space to use until YYY day/time", also, put in some log in /var/log to warn the root. (No emails). If the user is executing a X11, like KDE, instead of shell warning, put a notify. And then establish a policy, like, before the user logs out, warn again, and when the user logs in, warn again.
Offline