[OT] How to turn on echo or date/time UDP services on OS X?
Alex Rice
alrice at ARCplanning.com
Sat Aug 23 13:04:00 EDT 2003
On Saturday, August 23, 2003, at 10:58 AM, Steve Gehlbach wrote:
> Thanks for the RTFM, I did not realize the root restriction was lifted
> for higher ports. I can say for sure that Windows does not have the
> restriction, I have tested it.
>
> I need to use UDP port 67 for a bootp server, which is used in one of
> my user apps for re-installing software on an embedded system (I'm
> porting to RR). So the program will have to be run as root, I guess.
>
> The other option (sometimes used by http and smtp) is to put the file
> permissions as set uid root
Yeah suid root is supposed to be evil.
If it's a long running process, and security is a goal you could figure
out how to startup as root, then switch to a non-privileged user after
that. Maybe an external calling setuid() or some other C system call.
This would be like apache- ones does "apachectl start" as root and it
spawns of httpd processes, listing to privileged ports, but running as
user www or nobody instead of root.
Alex Rice, Software Developer
Architectural Research Consultants, Inc.
http://ARCplanning.com
More information about the use-livecode
mailing list