The service you created must bind to port 443, but it runs as a non-root user. How?
BeginnerScenarioProcesses, services and systemd
Answer
Situation read → Ports below 1024 need CAP_NET_BIND_SERVICE.
What I'd do →
Add to the [Service] section:
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
Then daemon-reload and restart. Alternatives: put nginx in front on 443 and proxy to a high port, or use socket activation.
Why → You grant one privilege instead of running the whole app as root.
Interview tip → Mention sysctl net.ipv4.ip_unprivileged_port_start exists but it is a host-wide change.
More on Processes, services and systemd
Your team has a Python API that someone starts with `nohup python app.py &`. Make it a proper service running as a non-root user.BeginnerYou need to change one setting (memory limit) in a vendor-supplied unit file without editing it. How?BeginnerA service depends on a database on the same host and fails at boot because the DB isn't ready. How do you fix the ordering?IntermediateA service keeps crashing and systemd stops restarting it after a few attempts. How do you tune this?IntermediateA long-running app must reload its config without dropping connections. How do you wire this into systemd?IntermediateA script needs to run once at boot after networking, then exit. How do you do it with systemd?Beginner