On Ubuntu I want to set up cron task to send email from my application. I think that I should run this crontab as user, not as root. Am I right? But I cannot go to the crontabs directory. I have permission denied.
user1@srv:/var/spool/cron$ cd crontabs -bash: cd: crontabs: Permission denied user1@srv:/var/spool/cron$ ls -al total 12 drwxr-xr-x 3 root root 4096 Nov 26 2016 . drwxr-xr-x 6 root root 4096 Nov 26 2016 .. drwx-wx--T 2 root crontab 4096 Feb 17 19:01 crontabs
When I have called command crontab -e as user1, it has been written in tmp folder. So should I run this task as user1? And if I should, how to do that?