I've noticed that
crontab -e and
sudo crontab -e seem to edit separate files. How do these two commands differ, and in what circumstances should each be used?
To add on to cduffin, use the minimum permissions rule when running your cronjob. If the job can effectively be run as a regular user, have the job run as them. If the cronjob requires escalated privileges, add the job as the root user.
To be super security conscious, you can figure out what root level commands need run and set the regular user up in the /etc/sudoers file to be allowed to run that single command... Example:
Defaults:johndoe !requiretty johndoe ALL=NOPASSWD:/usr/bin/tail /var/log/yum.log*