Re: [Leap 16.0] apache2 group wwwrun or www?
Andrei Borzenkov <[email protected]> Sat, 18 Jul 2026 09:46:07 +0300
| Newsgroups | gmane.linux.suse.general |
|---|---|
| Message-ID | <[email protected]> |
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" ? :-) > >> 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.