Red Hat Bugzilla – Bug 4075
/etc/cron.daily/tmpwatch should have a --force flag
Last modified: 2008-05-01 11:37:51 EDT
tmpwatch by default doesn't remove files to which root does
not have write access. Formatted pages under /var/catman
are created writable only for members of group "man".
Therefore those pages are not removed by the command in
I suggest to add the "--force" flag to this command. This
would make the command remove old formatted manual pages, as
well as other old files failing the writability test.
the 6.0 version of tmpwatch _does_ include the -f flag for directories
Are you really sure? In the stock 6.0 version?
22:22 uebn> rpm -q tmpwatch
22:22 uebn> rpm -V tmpwatch
22:22 uebn> cat /etc/cron.daily/tmpwatch
/usr/sbin/tmpwatch 240 /tmp /var/tmp /var/catman/cat?
No, you are right and I was incorrect. But we have changed it to the
behaviour you indicate for our next release. Sorry for the confusion.