Crontab Question

Jonathan Chen jonc at
Wed Apr 10 21:43:37 UTC 2019

On Thu, 11 Apr 2019 at 09:34, Software Info <softwareinfojam at> wrote:
> I see. I had however copied the output of env to the etc/crontab PATH line. Wouldn’t that care for an environment issue though?

When I say "environment", I mean it in the generic sense; including

However, best practise is to keep /etc/crontab as minimal as possible,
and to set up environ(7) within the invoked script-file.
Security-wise, you should just keep PATH in /etc/crontab to the
standard, and invoke your script with:
* * * * * user /path/to/my/script

This is especially important when running as root.

Jonathan Chen <jonc at>

More information about the freebsd-stable mailing list