Sample Header Ad - 728x90

Errors on trigger of incrond scripts

0 votes
1 answer
2411 views
I have incron installed on my centos 7 machine. for my initial testing, I have a simple entry in the table. When a file is moved to the target folder, it would run a script. What I did first was to execute /dir IN_MOVED_TO logger success This does not work though, when I put a file in the target folder I see a message in the /var/logs/messages that says Aug 14 23:29:27 Clone-Dev-AnalyticsAutomation gnome-session: gnome-session-binary: WARNING: Unable to inhibit system: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied Aug 14 23:29:32 Clone-Dev-AnalyticsAutomation journal: unable to create file '/run/user/1018/dconf/user': Permission denied. dconf will not work properly. I thought incrond was started without the sudo command so I restarted it with the sudo command but I still get the same results. I ran **service incrond status -l** Aug 14 23:13:48 Clone-Dev incrond: loading user tables Aug 14 23:13:48 Clone-Dev incrond: loading table for user simon Aug 14 23:13:49 Clone-Dev incrond: loading table for user analytics Aug 14 23:13:49 Clone-Dev incrond: loading table for user root Aug 14 23:13:49 Clone-Dev incrond: access denied on ## - events will be discarded silently Aug 14 23:13:49 Clone-Dev incrond: cannot create watch for user root: (22) Invalid argument Aug 14 23:13:49 Clone-Dev incrond: access denied on ## - events will be discarded silently Aug 14 23:13:49 Clone-Dev incrond: cannot create watch for user root: (22) Invalid argument Aug 14 23:13:49 Clone-Dev incrond: ready to process filesystem events I'm not really sure what's happening. I feel like incrond is trying to execute commands but does not have the necessary privileges.
Asked by chip (153 rep)
Aug 14, 2018, 03:39 PM
Last activity: Aug 14, 2018, 04:44 PM