Binding Ports 80/443 as a Non-Root User with Podman on Debian

The fix in one line: raise the kernel’s unprivileged port floor, pair it with linger, done.

Rootless containers are the right default — no root escalation, no daemon running as uid 0. The snag every newcomer hits: binding privileged ports (<1024) fails for a non-root user.

Drop this into /etc/sysctl.d/99-podman-ports.conf:

net.ipv4.ip_unprivileged_port_start=80

Apply and verify:

$ sudo sysctl --system
$ cat /proc/sys/net/ipv4/ip_unprivileged_port_start
80

Pair it with loginctl enable-linger $USER — without linger, a rootless compose stack dies with your SSH session.

Total setup cost: two files, one command. That’s the whole privilege model a rootless web server needs.