portaudit in periodic

Cristian KLEIN cristi at net.utcluj.ro
Mon Nov 26 02:46:14 PST 2007

Andrea Venturoli wrote:
> Hello.
> I'm running a dozen boxes (most being 6.2) with portaudit installed and
> I usually get a port vulnerability report in the daily security run.
> On one box, however, portaudit's db won't update automatically. The
> security reports will mention no vulnerability, even when I know they
> are there.
> Running "periodic daily" from a shell does it all for good, so that for
> a few days I'll see the correct warnings.

I used to have problem with cron scripts, because cron uses another PATH then
what the script gets if it's run from the shell. Could you try the following
(assuming sh):

export SHELL=/bin/sh
export PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
export HOME=/var/log
periodic daily

More information about the freebsd-questions mailing list