Log files owned by www-data user and thus inaccessible by domain user (nginx)

All virtualhosts’s logs in /var/log/virtualmin are owned by www-data user (also group is set to www-data). Because of this domain users can’t view logs.

I am using nginx and php-fpm.

I have tried changing permissions manually, but it goes back to original www-data and so domain users don’t have permissions to view logs. With FTP they see /home/domainuser/logs as empty folder.


which are symlinks have correct ownership (group + owner) as domain user, but destination files in /var/log/virtualmin have wrong permissions.

Any ideas how can I fix this?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.