Apache2 and the "system-user-wwwrun" package

Given that the “apache2” package requires “user(wwwrun)” and “group(www)” and, the package “system-user-wwwrun” supplies these required user and group entries, I can’t find anything in either the “Zypper” or “RPM” dependencies or, the package scripts, which suggests that, installing Apache2 on a new fresh Leap system will also install the needed “wwwrun” System User package.

  • Any ideas?
    Or, is it simply the user and group “requires” which does the trick?

And, the “system-user-wwwrun” package sets the protection on the login directory of the system user “wwwrun” as follows –

 > LANG=C ls -ld /var/lib/wwwrun
drwxr-xr-x 2 wwwrun root 4096 Dec  4  2023 /var/lib/wwwrun
 >
  • Any ideas as to why, the default group associated with that system user’s login directory is “root” rather than either “www” or “wwwrun”?
zypper search --provides --match-exact 'user(wwwrun)'

@arvidjaar:

OK, thanks but, I’ll still set up a new VM and see if, it behaves as expected. :sunglasses:

Installed a fresh default – no specific changes – Leap 15.6 VM.

  • Installed the apache2 packet –
    The “system-user-wwwrun” package was called as hoped for.

So, yes, the user and group “requires” do the trick.


Which only leaves the question of the group associated with the login directory of the system user “wwwrun” –

  • Why is the group of that login directory “root”?

No idea why. Mine:

henk@boven:~> l /var/lib/wwwrun/
total 8
drwxr-xr-x  2 wwwrun root 4096 Dec  4  2023 ./
drwxr-xr-x 66 root   root 4096 Nov 15  2022 ../
henk@boven:~>

So it seems to be like that already for some time, even longer then Leap 15.6 (I did on-line upgrades since many versions).

There is nothing in there. And, as wwwrun can not log in at all:

henk@boven:~> grep www /etc/passwd
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
henk@boven:~>

I never cared. Although I understand your amazement (and am curious too).

OK – I’ll raise a Change Request in the Bug Reporting system.

  • The Bug Report number is 1239740.

https://bugzilla.opensuse.org/show_bug.cgi?id=1239740

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.