Comment 2 for bug 1394097

Revision history for this message
Andreas Altaïr Redmer (altair-ibn-la-ahad) wrote :

Hi,

I just browsed the source code and tried to reproduce the error. But for me everything seems to work as expected. Are you restarting the daemon process after you change the /etc/incron.allow ?

Can you try it again and observe the log output with

tail -f /var/log/syslog | grep incrond

If I add my user to the allowed file the log output shows this:

Jan 24 22:24:41 nano incrond[16535]: loading user tables
Jan 24 22:24:41 nano incrond[16535]: loading table for user XXXX
Jan 24 22:24:41 nano incrond[16535]: ready to process filesystem events

So the rules are loaded and executed. If I remove the name there (or just change it to www-data) the log output is:

Jan 24 22:26:48 nano incrond[17901]: loading user tables
Jan 24 22:26:48 nano incrond[17901]: table for invalid user XXXX found (ignored)
Jan 24 22:26:48 nano incrond[17901]: ready to process filesystem events

So the rules file for that user is ignored. As expected.