But why sudo?
this post was submitted on 17 Jun 2023
8 points (90.0% liked)
Programmer Humor
37051 readers
112 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
AFAIK some distributions only allow root to bind ports below 1024 (that is, if you don't so some other witchcraft...)
You cant run something on port 80 as a normal user. All ports below 1024 are privileged and therefore require sudo.
Love that Python makes it so easy to start a local http server.
i like it when it saved me from using the bloated nodejs live-server thing
I use this all the time, but not with sudo and not 80