SLS

 
Title: HowTo: Use f-prot and cron
Description: To scan and update automatically


1. Setting up the cron job to Update signatures


As root:
ln -sf /usr/local/f-prot/check-updates.sh /etc/cron.daily/f-prot.cron

it will now check for updates every day.


2. Now to set up a cron job to scan files


drop to a console and type:
sux


(become root - enter root password)

now:

cd /etc/cron.daily

/opt/kde3/bin/kate f-prot_scan.sh


(this will open up a text editor window - Now I have used KATE here - please change to your favourite esitor - I suggest installing NANO)

now put in this window:
#!/bin/sh

# Cron job to check files
/usr/local/bin/f-prot -report=/home/(YOURUSERNAME)/scanlist.txt (Directory to scan)

Then:
chmod 666 /home/(YOURUSERNAME)/scanlist.txt


  • Note the line after the "#" can be repeated, so to scan several separate directories.

As an example:
/usr/local/bin/f-prot -report=/home/(YOURUSERNAME)/scanlist.txt /usr
/usr/local/bin/f-prot -report=/home/(YOURUSERNAME)/scanlist2.txt /home

Please replace YOURUSERNAME as required

Save the file and exit the editor

now
chmod 775 f-prot_scan.sh

It should now run every morning, and leave a file in your home directory called scanlist with the results

(change (YOURUSERNAME) to your username)

Sources: & Credits:
Own knowledge

Comments and Suggestions:
http://forums.suselinuxsupport.de/index.ph...st=0#entry80842

There are no comments on this page. [Add comment]


Warning: include(http://forums.suselinuxsupport.de/ssi.php?a=active) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/customers/webs/slwiki/actions/footer.php on line 51

Warning: include() [function.include]: Failed opening 'http://forums.suselinuxsupport.de/ssi.php?a=active' for inclusion (include_path='.:/home/customers/webs') in /home/customers/webs/slwiki/actions/footer.php on line 51

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.0
Page was generated in 0.1232 seconds