wwwrun and permissions

Thanks to both of you for your replies. I didn’t have time to deal with this problem since my last post.

I actually had misconceptions about users and groups.
I thought that a user is necessarily member of the group with the same name. Obviously it is not the case:

erik@trano:~> grep www /etc/group 
**www**:x:462:**www**run 
**www**run:!:461:erik

Ther is no such line:

[FONT=monospace]wwwrun:!:461:wwwrun[/FONT]

So my previous owner and group permissions in the local web server:

-rw-rw-r-- 1 erik wwwrun  9830  2 oct.  20:32 errorlog

could not allow Apache to write into logs.
I just changed wwwrun for www and that’s it.

Something confused me (and still does) :

  • when I look into YaST2 users (GUI), I see on the first tab that wwwrun is member of www and wwwrun. But if I try to edit this line, wwwrun is not checked as a group of which wwwrun is a member ;
  • with groups (second tab) : group wwwrun has erik and wwwrun as members - when editing, wwwrun is not part of the main list (where erik is checked), but it is checked in a greyed area below.

I wonder how to understand these differences.

Erik