Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suEXEC user mismatch #234

Open
dchmayer opened this issue May 23, 2023 · 1 comment
Open

suEXEC user mismatch #234

dchmayer opened this issue May 23, 2023 · 1 comment

Comments

@dchmayer
Copy link

dchmayer commented May 23, 2023

When trying to execute a cgi-file, suexec throws an error, because the apache process is running as user "www-data", whilst the flag "AP_HTTPD_USER" is set to "www" by default.

[2023-05-22 18:21:45]: user mismatch (www-data instead of www)

output of "suexec -V":
-D AP_DOC_ROOT="/usr/local/apache2/htdocs"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="www"
-D AP_LOG_EXEC="/usr/local/apache2/logs/suexec_log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=100
-D AP_USERDIR_SUFFIX="public_html"

Is it possible to replace suEXEC "AP_HTTPD_USER" default value to container default httpd user in order to make it functional by default?

@tianon
Copy link
Member

tianon commented May 24, 2023

Interesting! I'm not very familiar with suexec, but what I can find in https://httpd.apache.org/docs/2.4/programs/configure.html#suexec doesn't look very promising for a "simple" fix to this (just supplying an appropriate ./configure argument). This probably requires a bit more digging into what we need to set/change in order to get this default value changed appropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants