Hi All,
I am very new to Kali linux.
Have installed Greenbone Security Assistant the feed status for NVT is 7 days old, SCAP is 8 days old, CERT is 8 days old.
Kindly assist in updating feeds.
Regards
ganraya3000
Hi All,
I am very new to Kali linux.
Have installed Greenbone Security Assistant the feed status for NVT is 7 days old, SCAP is 8 days old, CERT is 8 days old.
Kindly assist in updating feeds.
Regards
ganraya3000
There are scripts in /usr/local/sbin to update the feeds. You can also create a cronjob that runs once a day to update your feeds.
I’ve created a script /usr/local/sbin/update-greenbone-feeds
#!/bin/bash
/usr/local/sbin/greenbone-nvt-sync
/usr/local/sbin/greenbone-certdata-sync
/usr/local/sbin/greenbone-scapdata-sync
and added that via sudo crontab -e
1 1 * * * /usr/local/sbin/update-greenbone-feeds 1>/dev/null 2>/dev/null
so it runs every night at 1:01 am
Best regards,
Chris
Thanks a lot for your assistance, Chris, had to run it manually, couldn’t find /usr/local have bin & share folder.
Regards
ganraya3000
The location of the files depends on your installation Just adjust it to your needs
Hey,
i have a problem, i’ve made the cronjob like that:
14 11 * * * /home/gvm/scripts/greenbone-sync.sh 1>/dev/null 2>/dev/null
and when i run this command manualy:
/home/gvm/scripts/greenbone-sync.sh 1>/dev/null 2>/dev/null
its update my feed, but in the cronjob its doesnt work… someone know why its not update the feed?
in the syslog i get just that msg:
Oct 31 13:59:01 greenbone CRON[14146]: (gvm) CMD (/home/gvm/scripts/greenbone-sync.sh 1>/dev/null 2>/dev/null)
One idea would be NOT to redirect stderr and stdout; that way you’ll see the errors.
Classic: $PATH not set properly when run from cron.
I’d like to point out this cronjob should run under “gvm” account (owner of the said scripts), not root.