Subj : Re: SimpleHTTPServer To : paulie420 From : MeaTLoTioN Date : Fri Aug 20 2021 09:31:24 On 20 Aug 2021, MeaTLoTioN said the following... Me> pa> Yea; I dunno how much traffic it could handle, BUT that might be the Me> pa> simple solution to get me on port 80 w/o running as root/sudo. Me> Me> You can't bind any ports under 1024 as a non root user Why are the first 1024 ports restricted to the root user only? Binding is an integral step for server side socket. Its like providing some address to end-user (server). So, we assign an IP address and a port number for running a server. But we can not provide any random port number to a server. The port numbers from 1 to 1023 are restricted for root user only and we can not assign those ports without having root access. The reason behind this restriction is that most major network services like HTTP, FTP, SSH, Telnet, POP etc. runs in this range. So, if any one is allowed to run on those port, following circumstances may arise : * An untrusted user could run a program that listened on these ports for login (access) details. * An untrusted user could run an unauthorized server application. Hope this helps =) --- |14Best regards, |11Ch|03rist|11ia|15n |11a|03ka |11Me|03aTLoT|11io|15N |07ÄÄ |08[|10eml|08] |15ml@erb.pw |07ÄÄ |08[|10web|08] |15www.erb.pw |07ÄÄÄ¿ |07ÄÄ |08[|09fsx|08] |1521:1/158 |07ÄÄ |08[|11tqw|08] |151337:1/101 |07ÂÄÄÙ |07ÄÄ |08[|12rtn|08] |1580:774/81 |07ÄÂ |08[|14fdn|08] |152:250/5 |07ÄÄÄÙ |07ÄÄ |08[|10ark|08] |1510:104/2 |07ÄÙ .... Documentation: The worst part of programming. --- Mystic BBS v1.12 A47 2021/08/10 (Linux/64) * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (1337:1/101) .