Interview Prep/Linux/Boot, time, cron and kernel

A file you dropped into `/etc/cron.d/` is ignored. The cron log shows nothing about it.

IntermediateTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → On Debian/Ubuntu, run-parts naming rules: filenames with dots (e.g. backup.cron) are skipped. Also: missing user field, group/world-writable file, or not owned by root.

Diagnose →

ls -l /etc/cron.d/
cat /etc/cron.d/backup.cron
journalctl -u cron | grep -i 'bad\|insecure\|wrong'

Fix → Rename to backup (letters, digits, -, _ only), chmod 644, chown root:root, and include the user column: 30 2 * * * root /usr/local/bin/backup.sh.

Prevent → Lint cron files in config management.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel