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

Debian folder permissions wrong after each update #36

MagicFab opened this Issue Aug 17, 2015 · 3 comments


None yet
4 participants
Copy link

commented Aug 17, 2015

Oringinally reported in matomo-org/matomo#8532:

After every debian piwik package update I always should apply manually
chown -R piwik:piwik /usr/share/piwik/tmp/

when Piwik runas as piwik user

It's changing somehow to www-data user.


This comment has been minimized.

Copy link

commented Aug 17, 2015

@MagicFab this is an expected behaviour...
All Piwik files (through the debian package) are installed by default as root:root for security reasons.

Though, as it's a web application, the default user to run a web server is www-data under debian/ubuntu definitions. And as Piwik has needs to write in few folders, the post-installation tries to ensure the application stays functional.


This comment has been minimized.

Copy link

commented Aug 17, 2015

That's ok for one time during install, but not for every package update.


This comment has been minimized.

Copy link

commented Sep 26, 2015

phpmyadmin package uses this in postinst script:

        if ! dpkg-statoverride --list /var/lib/phpmyadmin/tmp >/dev/null; then
                chown -R www-data:www-data    /var/lib/phpmyadmin/tmp

which should be no problem for a tmp folder for piwik, too ;)

@aureq aureq closed this in 2c72604 Feb 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.