WARNQUOTA.CONF(5)
π NAME π
okay bestie, so warnquota.conf is literally the configuration file for warnquota β that's it, that's the whole job description π
β¨ SYNOPSIS β¨
/etc/warnquota.conf
that's the path, she lives at /etc, no notes π
πΈ DESCRIPTION πΈ
so warnquota.conf stores the configuration for the warnquota(8) tool, which is the little icon that goes and tells a user or a group "hey girl, you're over your disk quota limits" π it's a notifier, it's giving customer service.
The syntax is so simple β it's an option name, then an equal sign, then the option value. And yes, white space characters hanging around the option names and values are totally allowed, she's not picky π«Ά
Empty lines? Ignored. Lines starting with a hash sign or a semicolon? Also ignored. They're background characters, we don't see them β¨
An option value can be quoted, but honestly it doesn't have to be. It's flexible like that. And the value can span across multiple lines β the only catch is that each previous line has to end with a backslash \, no exceptions bestie.
Some option values can contain formatting sequences, which get expanded to their respective values. Here's the whole lineup, and yes, you need all of them:
%dβ domain name%hβ host name%i,%sβ user or group name%%β literal % character|β new-line character
π OPTIONS π
CC_BEFOREβ sends to the copy-carbon address only when a user has less than the specified grace time left. The value is a number followed by a time unit. Known units are seconds, minutes, hours, and days. Example:5 daysCC_TOβ an e-mail address to put into the copy-carbon (CC:) recipient header. Default value isroot.CHARSETβ defines the character set for sent e-mails. Default value will be the current locale character set used when executing thewarnquotacommand, if the locale is not eitherCorPOSIX. Otherwise no character set will be specified in the e-mails. periodt.FROMβ defines theFrom:e-email address. Default value issupport@localhost.GROUP_MESSAGEβ a text sent as an e-mail body if a group exceeds its limits. This option recognizes formatting sequences.GROUP_SIGNATUREβ a signature text appended to the notification for a group. Default value is a general explanation utilizingSUPPORTandPHONEvalues. This option recognizes formatting sequences.LDAP_BASEDNβ base distinguished name for LDAP queries.LDAP_BINDDNβ bind distinguished name for LDAP queries.LDAP_BINDPWβ bind password for LDAP queries.LDAP_DEFAULT_MAIL_DOMAINβ default e-mail address domain of the searched user if the given LDAP attribute does not specify any.LDAP_HOSTβ LDAP server name to connect to ifLDAP_URIis not defined.LDAP_MAILβ a boolean controlling if LDAP has to be used to look up the user's e-mail address. Possible values aretrueandfalse. Default value isfalse.LDAP_MAIL_ATTRIBUTEβ the LDAP attribute which holds the user's e-mail address.LDAP_PORTβ LDAP server port number to connect to ifLDAP_URIis not defined.LDAP_SEARCH_ATTRIBUTEβ the LDAP attribute which holds the user's ID to look up.LDAP_URIβ the URL of the LDAP server to use to search the user's e-mail addresses. This option takes preference overLDAP_HOSTandLDAP_PORT. Example:ldaps://example.com:389/MESSAGEβ a beginning of text sent as an e-mail body if a user exceeds his limits. This option recognizes formatting sequences.MAIL_CMDβ the command to execute to send an e-mail. The e-mail text including all headers is passed to the standard input of the command. Default value is/usr/lib/sendmail -t.MAILDEVβ the device with disk quotas to exclude from sending notifications if there are exceeded limits. This option should identify the device where mail boxes are stored, to prevent bouncing thewarnquotanotification by local MDA due to no space for storing new e-mails. Special valueanydenotes all devices. πPHONEβ the telephone contact to the user support. Default value is(xxx) xxx-xxxx or (yyy) yyy-yyyy.SIGNATUREβ the end of the e-mail body if a user exceeds its limits. Default value is a general explanation utilizingSUPPORTandPHONEvalues. This option recognizes formatting sequences.SUBJECTβ the text to put into theSubject:header. Default value isDisk Quota usage on system.SUPPORTβ the contact to the user support. Default value issupport@localhost.
π EXAMPLE π
here's the vibe, copy-paste away:
# comment
FROM = root@example.com
SUPPORT = support@example.com
PHONE = 1234
π¦ FILES π¦
/etc/warnquota.confβ configuration forwarnquota(8)
π SEE ALSO π
no cap, every single one of these options is doing the absolute most and you should read them all before you touch the config π
and that's the whole page bestie, we ate π
this one lives in the File Formats Manual section under WARNQUOTA.CONF(5) β signed, sealed, delivered πβ¨π
π¦ where this page comes from
- alpine 3.24: quota-tools-doc 4.11-r0 Β· GPL-2.0-or-later
- centos-stream 10: quota-warnquota 1:4.09-10.el10 Β· GPL-2.0-only AND GPL-2.0-or-later
- centos-stream 9: quota-warnquota 1:4.09-4.el9 Β· GPLv2 and GPLv2+
- debian bookworm: quota 4.06-1+b2
- debian trixie: quota 4.09-1+b1
- fedora 43: quota-warnquota 1:4.10-2.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later
- fedora 44: quota-warnquota 1:4.11-2.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later
- nixpkgs unstable: quota 4.11
- opensuse-leap 16.0: quota 4.09-160000.3.1 Β· GPL-2.0-only
- opensuse-leap 16.0: quota 4.09-160000.3.1 Β· GPL-2.0-only
- opensuse-leap 16.0: quota 4.09-160000.3.1 Β· GPL-2.0-only
- opensuse-leap 16.0: quota 4.09-160000.3.1 Β· GPL-2.0-only
- ubuntu jammy: quota 4.06-1build2
- ubuntu noble: quota 4.06-1build6
- ubuntu questing: quota 4.09-1
- ubuntu resolute: quota 4.09-1build1
- ubuntu stonking: quota 4.11-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms