Running a web-service that binds to port 80 usually doesn't require sudoer privileges.
Since ports 80/443 are system ports, meaning they can only be used by privileged users, how come those services are still able to bind to these ports?
Although 80 and 443 are system ports, how are most web servers able to bind to them anyway
permissionsport-443service
Related Topic
- Linux – Prevent setuid from dropping setcap user privileges (VirtualBox)
- Sane permissions for webroot using Apache-MPM-ITK
- Kubernetes cluster ip not answering
- Powershell – Scheduled restart of a service with powerhshell as non-admin service account
- AD Account for Monitoring Services Across Servers – Configuration Guide
- SSH – Remote Port Forward Works on TCP/1194 but Not on TCP/443
Best Answer
There are basically two different approaches:
Initially start running as root, bind to the privileged port, and then drop down to an unprivileged user.
inetd, or xinetd runs privileged, and forwards the requests to web server running unprivileged.