httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 55787] New: Chroot fails with "Cannot chroot when not started as root" error
Date Sat, 16 Nov 2013 17:03:49 GMT

            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

I have set my chroot directory as shown below. 

ChrootDir /var/www

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

[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:
For additional commands, e-mail:

View raw message