Forum OpenACS Q&A: binding aolserver to port 80 on freebsd ports

Hi,

How does one modify openacs on FreeBSD ports so that aolserver runs on port 80?

I've tried appending ' -b NN.NN.NN.NN:80' to openacs_flags in /usr/local/etc/rc.d/openacs but get error:
Error: prebind: invalid entry: NN.NN.NN.NN:80 Permission denied

I've checked the IP number against iconfig, and also tried NN.NN.NN.NN:80,NN.NN.NN.NN:443

Collapse
Posted by Patrick Giagnocavo on
Ports under 1024 are "privileged" and can only be started as the root user.

Thus you need to start the program as the root user, and pass -u username and -g groupname for the user and group that aolserver should switch to running as, once it has acquired port 80 (and 443 if using SSL).

Collapse
Posted by Torben Brosten on
Hi Patrick,

Right. the user and group are also passed in the startup script flags.

I've been using a modified bash startup script that comes with openacs just fine. I just thought I'd try using the one that comes with ports.

The system is not accepting the binding flag for the ports startup script for openacs. I was wondering if there might be some FreeBSD system internal /etc/rc.conf type of thing that needs to be given an okay as well.

cheers,