[Zope] Re: nonroot user running zope on 80

Calvin Hendryx-Parker calvin at sixfeetup.com
Tue Sep 21 17:59:22 EDT 2004


John Hunter wrote:
> On a linux box, what is the right way to allow a non-privileged user
> (eg "zope") to run a zope server on port 80.  I can run on 8080 just
> fine, but don't have access to the lower numbered ports.
> 
> Interestingly, when I try 'bin/runzope' as root (port 80 or 8080), I
> get a segmentation fault, even though I can run on 80 as user zope.
> 
> [root at crcdocs bin]# ./runzope
> ------
> 2004-09-21T16:29:36 INFO(0) ZServer HTTP server started at Tue Sep 21 16:29:36 2004
>         Hostname: localhost.localdomain
>         Port: 8080
> ------
> 2004-09-21T16:29:36 INFO(0) ZServer FTP server started at Tue Sep 21 16:29:36 2004
>         Hostname: crcdocs.bsd.uchicago.edu
>         Port: 8021
> Segmentation fault
> [root at crcdocs bin]#

You have to start the parent process as root since it is below 1024, but 
in the zope.conf you can set the effective-user to someone else so its 
children will then run as the non-privileged user.  Not optimal, but works.

Calvin

-- 
S i x  F e e t  U p  |  "Nowhere to go but open-source"
Silicon Valley: +1 (650) 401-8579  |  Midwest: +1 (317) 861-5948
Toll-Free: 1-866-SIX-FEET
mailto:calvin at sixfeetup.com
http://www.sixfeetup.com  |  Zope Hosting from $19.95/month



More information about the Zope mailing list