How to enable CSF dirwatch (Directory Watching)
Posted: 28 Nov 2019, 12:57
Hey guys .
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
and here is my code :
then I did
and in my file I changed these values :
and saved changes then restarted "CSF" but it didn't send any email when I changed some of my files about 2 hours ago.
Where should I set my email address?
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