I just searched in forum and didn't find any thing related to my question so would you please help my to how configure CSF to watching any changed file in specific directory?
I gave FTP access to a freelancer and he's trying to develop some script but I don't trust him so I wanna to watch that directory .
I just edited
Code: Select all
/etc/csf/csf.dirwatch
Code: Select all
###############################################################################
# Copyright 2006-2016, Way to the Web Limited
# URL: http://www.configserver.com
# Email: sales@waytotheweb.com
###############################################################################
# The following should be a list of directories and files that you want to be
# alerted when they change. You must specify full paths for each entry.
#
# lfd uses a simple md5sum match from the output of "ls -laAR" on the entry and
# so will traverse directories if specified.
#
# An example where you might want to use this is /var/spool/cron
#
/home/public_html/MyUser/
Code: Select all
csf -r
service lfd restart
Code: Select all
/etc/csf/csf.conf
Code: Select all
LF_DIRWATCH = "30"
LF_DIRWATCH_FILE = "1"
Where should I set my email address?
Thanks in advanceNote : I'm using DirectAdmin on Centos 6