From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,4546a88ef494f0c1 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1995-02-23 20:32:54 PST Path: nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!uni-duisburg.de!zib-berlin.de!news.mathworks.com!panix!bloom-beacon.mit.edu!paperboy.osf.org!rsalz From: rsalz@osf.org (Rich Salz) Newsgroups: comp.unix.osf.misc Subject: Re: Binding privilaged ports Date: 23 Feb 1995 16:37:30 GMT Organization: Open Software Foundation Message-ID: <3iidka$ltq@paperboy.osf.org> References: <3ie3j4$f59@news.unimelb.EDU.AU> NNTP-Posting-Host: sulphur.osf.org In <3ie3j4$f59@news.unimelb.EDU.AU> Richard Begg writes: >We have a need for an otherwise non-privilaged user to bind >specific privilaged ports (e.g. 80). Is there any way this >can be done without full root access. No. The safest thing to do is provide a small setuid wrapper program that opens the port, binds to it, and then passes the open descriptor down to the child program as a command-line parameter. For an example, see "inndstart" in the INN distribution if you have it lying around. /r$