Re: [Leap 16.0] apache2 group wwwrun or www?

[email protected] Sat, 18 Jul 2026 10:50:16 +0200
Newsgroups gmane.linux.suse.general
Message-ID <[email protected]>
On Samstag, 18. Juli 2026 08:46:07 Mitteleuropäische Sommerzeit Andrei Borzenkov wrote:
> 18.07.2026 08:55, Robert Webb via openSUSE Users wrote:
> >   On Fri, 17 Jul 2026 13:13:44 +0200, [email protected] wrote:
> > 
> >> Hi *,
> > 
> > Does that mean "Hi, all-of-you-peoples" ?  :-)

Yes, indeed :)

> > 
> >> on my Leap 16.0 web server apache is running as user wwwrun and group www, but there also exists a group named wwwrun.
> >> Lately I got a few problems with Nextcloud, when updating modules, because some files had wwwrun:wwwrun set.
> >> So I tried to find out, what the proper group settings might be, but really got confused:
> >>
> >> /etc/apache2/uid.conf
> >>
> >>           User wwwrun
> >>           Group www
> >>
> >> /etc/passwd
> >>
> >> wwwrun:x:474:474:WWW daemon apache:/var/lib/wwwrun:/usr/sbin/nologin
> >>
> >> /etc/group
> >>
> >> www:x:479:wwwrun
> >> wwwrun:!:474:
> >>
> >> /usr/lib/sysusers.d/system-user-wwwrun.conf
> >>
> >> # Type Name ID GECOS [HOME]
> >> g www -
> >> u wwwrun - "WWW daemon apache" /var/lib/wwwrun
> >> m wwwrun www
> >>
> >> What is correct - www or wwwrun?
> >> And why is it different in those configs?
> > 
> > The two *.conf files seem consistent, although I haven't checked
> > documentation for them.  Don't they both indicate User: wwwrun and
> > Group: www ?
> > 
> > So /etc/group has both www and wwwrun, group www with one user, wwwrun,
> > and group wwwrun with no members (Is a user of the same name automatically
> > a member of the group?).
> > 
> 
> Yes, systemd-sysusers will automatically create a unique group with the 
> same name as user name for each user added by the "u" directive and use 
> it as the primary group for this user.
> 
> 

I never would have seen this, if the nextcloud module files wouldn't have had wwwrun:wwrun after the latest upgrade, which gave a few error messages in the nextcloud log.
smime.p7s (application/pkcs7-signature, 3.9 KB) - not displayed