Re: UID permissions mappings for "privileged ports" feature -- anybody done?

Alan Cox (
Tue, 5 Nov 1996 20:41:15 +0000 (GMT)

> Seems to me it would be easy to make a simple switch statement for
> privileged ports which would allow a certain user to access a certain
> privileged port -- and only that user (even disallow root if specified) --
> that way it would be easier to set up well known services without having
> to sit there and set up suid bits, etc. for all the servers. This would
> be most useful for standalone servers such as web servers, etc.

Not a kernel issue: You can spawn such things from inetd or you can write
a setuid program that does

allocate socket
bind to priviledged port
drop priviledges
exec user program