I have now splitted the scripts up into
authloger-analyser
fetch.openbl.script (ftp download text file)
fetch.blocklist.de.script (ftp download text file)
addfw (write data to permanent files in /etc
pf.reload.script (Needs to run pfctl -f /etc/pf.conf
Code:
#
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hour mday month wday command
0 * * * * /bin/sh /home/nobody/script/fetch.script
* * * * * /bin/sh /home/nobody/script/authlog-analyser
Is it better security to let basic user run, fetch script thats ftp download the text file?. Can that be edited into this crontab, or must it be removed here, and added to another user crontab?
Reading the manual, if found
FILES
/etc/crontab System crontab.
/var/cron/tabs/⟨user⟩ User crontab.
/var/cron/tab/root was the only one i found. And that is the one I am using. So how to add a user crontab?
Trying this a normal user
Code:
env EDITOR=nano crontab -e