it seems I have a little "typical" linux permissions problem. Freaked me out for almost 2 hours already. Maybe you can help me here (didn´t find a better matching area on the forum).
What I want to do: Use "goaccess" for parsing nginx webserver logs.
Manual command "sudo -u www-data /usr/local/bin/goaccess -p /var/www/.goaccessrc -f /var/log/nginx/access.log > /var/www/owncloud/logs/ahd.htm" gives "bash: /var/www/owncloud/logs/ahd.htm: no rights"
So the user www-data can´t write the .htm file (same result with "sudo -u www-data touch /var/www/owncloud/logs/test.txt"). Same with user pi, even with sudo!
I created the logs-folder manually and used "sudo chown -R www-data:www-data /var/www/owncloud/logs" for changing the owner to www-data. I also tried a chmod with 777 on the directory - nothing changed.
Owner of the folder is already www-data:
Code: Select all
drw-r--r-- 2 www-data www-data 4096 Apr 6 20:30 logs