User's incrontab not working (only root's) when incrond is run as a service
6
votes
2
answers
11344
views
Here is my incrontab (tony's incrontab):
/home/tony/Workspace/cocoonr/ui/static/ui/img/icons/vector IN_MODIFY,IN_CREATE,IN_MOVED_TO /bin/sh /home/tony/Workspace/cocoonr/boilerplate/svg2djangohtml $@/$# /home/tony/Workspace/cocoonr/ui/templates/inc/icons/
I tested it multiple times changing some things, no way to make it work when incrond is run as a service (using openrc).
If I run incrond in foreground (
incrond -n
), then tony's incrontab works
If I set root's incrontab to the one given above, it works even when run as a service.
My tony is in /etc/incron.allow
:
root
tony
And there is no /etc/incron.deny
.
I even tried with a much simpler incrontab:
/tmp/foo IN_ATTRIB touch /tmp/bar
The results are the same.
How to make user's incrontab working?
Asked by Antoine Pinsard
(131 rep)
Jun 20, 2016, 07:14 PM
Last activity: May 31, 2022, 10:03 PM
Last activity: May 31, 2022, 10:03 PM