You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/11/17 14:42:08 UTC

DO NOT REPLY [Bug 42175] suexec_enabled set incorrectly when httpd is run by a non-root user

https://issues.apache.org/bugzilla/show_bug.cgi?id=42175

--- Comment #2 from Dan Poirier <po...@pobox.com> 2009-11-17 05:42:07 UTC ---
I guess this is the problem code in fcgi:

        if (ap_unixd_config.suexec_enabled) {
            if (getuid() != 0) {
                ap_log_error(APLOG_MARK, APLOG_EMERG, 0, main_server,
                             "mod_fcgid: current user is not root while suexec
is enabled, exiting now");
                exit(1);


Why not just test getuid()==0 in unixd.c when setting
suexec_enabled?   That seems more direct than checking
access to the suexec program.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org