Re: allow user to listen on priviledged ports

From: Martin Blume (mblume_at_socha.net)
Date: 12/21/03


Date: Sun, 21 Dec 2003 15:43:26 +0100


"Sven Köhler" <skoehler-remove-for-no-spam@upb.de> schrieb
> hi,
>
> on windows there no problem: any user can listen on any port.
I beg to differ: that IS the problem.

> with a unix-os like linux it is common to disallow normal users
> to listen on priviledged ports. E.g. apache has to start up as
> root to listen on port 80.
as was pointed out before, only to bind to the port.

>
> what i want is to allow a user - let's say wwwrun - to listen on
> specific or all privileged ports. it this possible? is there any
> mechanism to do that?
>
You can have inetd / xinetd listen to the port, then spawn off the
server under another uid.

See man inetd.conf / man xinetd.conf

HTH
Martin



Relevant Pages

  • Re: allow user to listen on priviledged ports
    ... =>>>to listen on priviledged ports. ... =>> as was pointed out before, only to bind to the port. ... =>> server under another uid. ... This means you can't use inetd / xinetd as your 'wrapper'. ...
    (comp.os.linux.misc)
  • Re: allow user to listen on priviledged ports
    ... >>to listen on priviledged ports. ... > as was pointed out before, only to bind to the port. ... app has already been started. ... > server under another uid. ...
    (comp.os.linux.networking)
  • Re: allow user to listen on priviledged ports
    ... >>to listen on priviledged ports. ... > as was pointed out before, only to bind to the port. ... app has already been started. ... > server under another uid. ...
    (comp.os.linux.misc)
  • Re: allow user to listen on priviledged ports
    ... > on windows there no problem: any user can listen on any port. ... I beg to differ: that IS the problem. ... > to listen on priviledged ports. ...
    (comp.os.linux.misc)
  • allow user to listen on priviledged ports
    ... any user can listen on any port. ... with a unix-os like linux it is common to disallow normal users to ... listen on priviledged ports. ...
    (comp.os.linux.misc)