Cfengine configuration directory

Cleaning up after old users

Relevant classes: any

When users are deprecated, they leave behind files in spool dorectories which often result in error messages for the administrator. Use the following definitions in the control section of cfengine to warn about, or (better) to delete such files:

control:

SpoolDirectories = ( /var/spool/cron/crontabs /var/spool/cron/atjobs )

DeleteNonUserFiles = ( true )
DeleteNonOwnerFiles = ( true )

These deletes files owned by, or with the name of users who are no longer in the password database, in directories listed in the SpoolDirectories list, plus the mail spool directory. Note that, the newer DeleteNonUserFiles, extend and succeed the older DeleteNonUserMail.
Back to documentation