Of which there are three:
- Make life simple and do all your incron as root. I know you shouldn’t but it helps to avoid all sorts of permissions issues. You may need to create an allow file “/etc/incron.allow” and put either root or your sudo name in it.
- Ensure that you only have one “SPACE” (not a TAB) between the three elements on an incron job: e.g.
/etc/samba/smb.conf IN_MODIFY /etc/init.d/samba restart
- incron, like cron, requires full paths for just about everything, so if you are calling a script, use the full path to it, and use the full path to all programs inside the script.