Re: [Twisted-Python] twisted.web problem on FreeBSD 4.7

---------- Original Message ---------------------------------- From: Moshe Zadka <m@moshez.org> Reply-To: twisted-python@twistedmatrix.com Date: 27 Dec 2002 09:40:12 -0000
FreeBSD will only allow root to bind ports lower than 1024. further mktap --port=80 --path=/usr/www --uid=65534 --gid=65534 says that --uid is not recognised. last man mktap says there is no manpage so I am not sure where to look for this. so. if I can't run as root, how do I run ( 65534 was obtained from
pwd.getpwnam ('nobody')[2:4] )
-doug

On Fri, Dec 27, 2002 at 08:23:08PM -0800, douglas savitsky wrote:
mktap doesn't bind ports, twistd does. The point is that you run `mktap' as the user who you ultimately want the process to be run as, and if you need root privelages to bind the ports it uses, run `twistd' as root. It'll drop privs right after it binds.
mktap --port=80 --path=/usr/www --uid=65534 --gid=65534
says that --uid is not recognised. last
That's odd. Can you check the output of `mktap --help'? Also mktap --version.
man mktap
says there is no manpage so I am not sure where to look for this.
If you're using the Ports Twisted package, maybe the problem is with it? If you're using the tarball, the manpages are located in doc/man.
so. if I can't run as root, how do I run
Run mktap as nobody (or, once you figure out what the problem is, with the --uid option), and twistd as root.
-- Twisted | Christopher Armstrong: International Man of Twistery Radix | Release Manager, Twisted Project ---------+ http://twistedmatrix.com/users/radix.twistd/

On Fri, Dec 27, 2002 at 08:23:08PM -0800, douglas savitsky wrote:
mktap doesn't bind ports, twistd does. The point is that you run `mktap' as the user who you ultimately want the process to be run as, and if you need root privelages to bind the ports it uses, run `twistd' as root. It'll drop privs right after it binds.
mktap --port=80 --path=/usr/www --uid=65534 --gid=65534
says that --uid is not recognised. last
That's odd. Can you check the output of `mktap --help'? Also mktap --version.
man mktap
says there is no manpage so I am not sure where to look for this.
If you're using the Ports Twisted package, maybe the problem is with it? If you're using the tarball, the manpages are located in doc/man.
so. if I can't run as root, how do I run
Run mktap as nobody (or, once you figure out what the problem is, with the --uid option), and twistd as root.
-- Twisted | Christopher Armstrong: International Man of Twistery Radix | Release Manager, Twisted Project ---------+ http://twistedmatrix.com/users/radix.twistd/
participants (3)
-
Christopher Armstrong
-
douglas savitsky
-
Moshe Zadka