Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Running `crontab -e` as a non-root user will edit that user's crontab, and running it as root will edit the system crontab.

Running it as root will edit the root user's crontab (in /var/spool/cron), which is separate from the system crontab (/etc/crontab), which has a slightly different format.



Alpine executes system cron jobs (daily, weekly etc) from root's crontab. That simple way of taking care of it makes me smile every time I see it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: