Project

General

Profile

User permission www-data

Added by Argon over 12 years ago

Hello,

I changed the user and group of the Lighttpd process to "pi" and "pi"

server.username             = "pi" 
server.groupname            = "pi"

Now I see that Lighttpd can't run because the /var/log/lighttpd folder have not the correct permissions. I still see the "www-data" user instead of the "pi" user is the owner. Is there another setting I have to modify or do Lighttpd have to run under www-data?

If I manually change the owner of the /var/log/lighhtpd file to "pi" then i can execute Lighttpd. But I don't want to do this each time manually :-)

Thanks for the tips!


Replies (2)

RE: User permission www-data - Added by spaam over 12 years ago

maybe you should change the ower of that dir and subfolders? using chown -R

RE: User permission www-data - Added by Argon over 12 years ago

Already changed the folder lighttpd: "chown pi:pi /var/log/lighttpd". Then all goes fine.
If I restart the server the permissions changed again to www-data...

Edit: Just did it on another way. I added the user Pi to the group www-data. So now the pi user has also rights on the /var/log/lighttpd folder...

    (1-2/2)