IN_MODIFY does not trigger on file modification in some accounts

Bug #1394097 reported by Lars Noodén
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
incron (Ubuntu)
New
Undecided
Unassigned

Bug Description

IN_MODIFY does not trigger on file modification in some accounts. The results are inconsistent. Either it triggers for one user or it does not. One time, changing the order of users inside /etc/incron.allow *seemed* to change which user could use IN_MODIFY, but changing the order back to the original did not switch the behaviour back.

What should happen is that IN_MODIFY works for every user allowed to write incrontabs.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: incron 0.5.10-1ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-39.66-generic 3.13.11.8
Uname: Linux 3.13.0-39-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Nov 19 09:55:34 2014
InstallationDate: Installed on 2014-10-26 (23 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
SourcePackage: incron
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.incron.allow: [inaccessible: [Errno 13] Permission denied: '/etc/incron.allow']
modified.conffile..etc.incron.deny: [inaccessible: [Errno 13] Permission denied: '/etc/incron.deny']

Revision history for this message
Lars Noodén (larsnooden) wrote :
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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.