The testing I have been doing with AS 4.0b2 has been on port 8080. I
decided to start testing on another machine on port 80, but I keep on
getting the permission denied error when trying to bind to that port.
Something like:
Error: nssock: failed to listen ....: permission denied
I am starting it as root, with something like:
bin/nsd -f -t nsd.tcl -u nsadmin -g web
I threw in some log messages, and it seems like the user is nsadmin
right before I get the error. So, it is trying to bind to that port
after changing users. I looked around a little bit, and it looks like
NsPreBind is called before changing users. However, NsPreBind does
nothing is the -b or -B option are not given, when, I believe it should
pre bind anyways from what is given in the config file. I could be wrong
here.
Anyways, anyone else get AS 4.0 working on a privledged port? BTW, I
checked, and nothing else is running on that port. Running strace, I get
the EACCES error message from the bind function.
One other thing: shouldn't the command line arguments be a higher
priority then the options in the config file? I tried to use the -b
option to bind to a different port, but it still uses what is in the
config file.
Thanks,
--brett
--
Brett Schwarz
brett_schwarz AT yahoo.com
I. To remove yourself from this list:
Send a message to "[EMAIL PROTECTED]" with the following text in
the BODY of your message:
signoff aolserver
II. For a complete list of listserv options please visit:
http://listserv.aol.com/
III. For more AOLserver information please visit:
http://www.aolserver.com/