Package: checksecurity Version: 2.0.16+nmu3 Severity: normal > ( cd /usr/share/checksecurity/ ; grep date * ) check-diskfree: /usr/bin/mail -s "Diskfree alert for `hostname -f` on `date '+%D %T'`" $CHECKSECURITY_EMAIL < $TMPDF check-setuid: /usr/bin/mail -s "Setuid changes for `hostname -f` on `date '+%D %T'`" $CHECKSECURITY_EMAIL < $TMPDIFF check-sockets: /usr/bin/mail -s "Socket changes for `hostname -f` on `date '+%D %T'`" $CHECKSECURITY_EMAIL < $TMPDIFF
Yes, according to `man date`, `date +%D` is "Date". Unfortunately, it's a format that's misleading and ambiguous for the 96% of the world's population that doesn't live in the US (sure, we're used to seeing backarsewards dates, but for 11 days of the month the dates coming from these scripts are plausible, but wrong, the 12th day, it's correct by tautology, and for the other ~18 days of the month, they merely cause confusion) A slightly better alternative might be date +%x, but everyone (xkcd 1179) knows the real format you should be using is --iso-8601 or --rfc-3339=date. -- System Information: Debian Release: 12.8 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable'), (5, 'testing'), (2, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.10.11+bpo-amd64 (SMP w/16 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages checksecurity depends on: ii cron 3.0pl1-162 ii debconf [debconf-2.0] 1.5.82 ii perl 5.36.0-7+deb12u1 ii util-linux 2.38.1-5+deb12u2 Versions of packages checksecurity recommends: ii debsecan 0.4.20.1 pn logcheck <none> pn tiger <none> pn tripwire | integrit | aide | samhain | fcheck <none> Versions of packages checksecurity suggests: ii cron-apt 0.13.0.1 ii lockfile-progs 0.1.19 -- Configuration Files: /etc/checksecurity/check-diskfree.conf changed [not included] /etc/checksecurity/check-setuid.conf changed [not included] -- debconf information: checksecurity/oldconf: