[Techtalk] apache switching users to not nobody

Laurel Fan laurel at freeshell.org
Tue Dec 11 00:46:06 EST 2001


I want apache to bind port 80 as root, and then switch to a less
privileged user.  So, I've modified the User and Group directives in
httpd.conf.

This works fine if I start apache as real root, but if I start it with
a setuid root wrapper binary (permissions 6755, owned by root:root),
it doesn't work.  I get the error: 
 [crit] (13)Permission denied: make_sock: could not bind to port 801 
in error.log.

This is apache 1.3.19 on solaris.

Any ideas?

-- 
laurel at sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



More information about the Techtalk mailing list