Socket access to low numbered ports?

John Burton john.burton at jbmail.com
Sun Mar 21 07:58:09 EST 2004


Tuure Laurinolli wrote:

 > John Burton wrote:
 >
 >> Dan Boitnott wrote:
 >>  > John Burton wrote:
 >>  > Well it does - thanks for that - except that setting the set uid
 >> bit on
 >> the script doesn't seem to actually work. This is on gentoo linux.
 >
 >
 > Indeed it doesn't. You have to use a wrapper of some sort. Google should
 > help you on finding one.

Ok, I'm now using sudo to launch the application which just opens the
listening sockets and then calls os.setuid to set the uid back to an
unprivilaged account.

It seems to work fine.

Thanks for the help.



More information about the Python-list mailing list