httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55787] New: Chroot fails with "Cannot chroot when not started as root" error
Date Sat, 16 Nov 2013 17:03:49 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55787

            Bug ID: 55787
           Summary: Chroot fails with "Cannot chroot when not started as
                    root" error
           Product: Apache httpd-2
           Version: 2.4.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: gravatar@selvans.net

I have set my chroot directory as shown below. 

ChrootDir /var/www

When started with the above chroot setting, apache2 exits with the following
error

[Sat Nov 16 10:20:54.241556 2013] [unixd:alert] [pid 12802] (2)No such file or
directory: AH02158: Cannot chroot when not started as root

NOTE: apache2 is started as 'root' user. It looks like the call to check
geteuid() is made after apache2 lowers its privilege to APACHE_RUN_USER?

I am not sure this is a bug or configuration issue. This directory (/var/www)
mentioned above was setup with everything needed for chroot'ed environment with
libapache2-mod-chroot and was working fine for many years running under apache
2.2. Recently, I upgraded to 2.4.6 and wanted to switch to apache2's native
Chroot since mod_chroot is no longer maintained and I am now stuck with the
above error.

-- 
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


Mime
View raw message