I have been using the incron service for a few years to monitor a folder/directory to react (start a script) when a new file is uploaded to my computer via Dropbox from an external source.
I (user = dave) updated incrontab to add a command to monitor a specific file in another folder and start a BASH script when it appears in the folder. My user owns the folder, owns the file, and added the command to incrontab. I do the download from a financial service provider into this folder and have been doing this for years.
The incrond service is reporting an 'access denied' error for this file or folder when it starts.
Here's the line from incrontab:
/home/dave/GnuCash/Downloads/
(I want to start
Here are the error messages thrown at incrond startup:
incrond[5277]: access denied on /home/dave/GnuCash/Downloads/ - events will be discarded silently
incrond[5277]: cannot create watch for user dave: (2) No such file or directory
The file doesn't exist until I create it by downloading from the external site.
I don't know how to fix the 'access denied' error. My user updates incrontab, owns the folder, downloads and owns the file (and successfully every time), yet incron seems to have an issue with access to it. All research I've done so far has found this error is caused by a mismatch between the owner of the monitored directory or file and the user updating the incrontab file. But I own all of it in this case!
Any suggestions will be appreciated!