Re: [users@httpd] how can I serve pages while running as a root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/14/05, Warren Beldad <advisory22@xxxxxxxxx> wrote:
> what i did is, i really install new FC4 on another harddisk.
> download apache_1.3.33.tar.gz
> tar -xvzf apache_1.3.33.tar.gz
> edit src/Configuration
>        EXTRA_CFLAGS=-DBIG_SECURITY_HOLE
>
> ./configure --prefix=/usr/local/apache --server-uid=root --server-gid=root
> make
> make install
> /usr/local/apache/bin/apachectl start
> cannot start, same error.....apache not designed to serve as root...........
> if i change the user in the httpd.conf to another user, ok it can start
> is there any log files that we can trace what's really wrong with this?

It's been so long since I installed 1.3 that I forgot: you can't mix
and match the src/Configuration and ./configure method of configuring
apache.  If you use ./configure, you need to actually set the
environment variable EXTRA_CFLAGS (or just CFLAGS) to
-DBIG_SECURITY_HOLE in your shell before running ./configure. 
(Alternatively, you can edit src/Configuration.tmpl.)  The reason is
that the ./configure script overwrites src/Configuration with default
values before it begins.

But again, you shouldn't be doing this.  It's a "bad idea" (tm).

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux