[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] Öppna sockets på po rt < 1024 som !root



Jacob Sparre Andersen wrote:
Håkan Kvist skrev:


Jag håller på att portera en applikation i C från ett annat
operativsystem till GNU/Linux.

Kan jag i en applikation på något sätt öppna en socket på en port <
1024 som en annan användare än root?


Nej. - I det mindste ikke uden at modificere kernen lidt.

Der er (mindst) to mulige løsninger:

 1) Starte programmet som »root«, gafle den ønskede port, og dernæst
    nedgradere programmets rettigheder til den ønskede bruger.

 2) Lade din portvagt/dørvogter/firewall/brandmur omdirigere den lave
    port til en højere port, som programmet så forbinder til.


Det kunne være interessandt Hvordan et etableret program som f.eks apache klarer det problem.



PEA


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-01-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *