Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The owner of /var/spool/incron/USERNAME file #11

Open
ghost opened this issue Oct 19, 2015 · 0 comments
Open

The owner of /var/spool/incron/USERNAME file #11

ghost opened this issue Oct 19, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 19, 2015

Hi,

When i added a new incron to a non-root user (whose username is 'myuser'):

    incron {'[incron] .bashrc':
      user    => 'myuser',
      command => 'bash -c "cd /home/myuser/scripts/ && ./update-puppet.sh"',
      path    => '/home/myuser/.bashrc',
      mask    => ['IN_CREATE', 'IN_DELETE', 'IN_CLOSE_WRITE'],
    }

The owner + group of /var/spool/incron/myuser were incorrect:

    root ~ ls -l /var/spool/incron/myuser
        -rw------- 1 root root 514 Oct 19 10:28 /var/spool/incron/myuser

The owner should be: user:root / group:incron

Because of this, it was impossible to run "incrontab -e" as "myuser".

Could you please fix this bug?

Thank you!

Asher256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants