3 ms·
Fun fact! On macOS you can expose privileged ports (<1024) using a regular user account. But ONLY if you don't bind the listening port to any interface. So you
by cyberax 9mo ago
Fun fact! On macOS you can expose privileged ports (<1024) using a regular user account.
But ONLY if you don't bind the listening port to any interface. So you try to create a listening port on localhost (e.g. 127.0.0.1:443) under a non-root account you get a permission error.
Edit: the thing is, you CAN expose "0.0.0.0:443" without root privileges!
- throwaway314155 9mo agoHow exactly are the ports "exposed" if they can't be bound to an interface?
- Zambyte 9mo agoBinding to 0.0.0.0 means binding to every interface.
- throwaway314155 9mo agoThat bit hadn’t been edited in when I wrote my comment.
- vxxzy 9mo agoA feature! Not a bug! Bugs can be undisovered features.
- kristopolous 9mo agoit's called a privileged port and it's been like this for decades, on every system, ever. Here's a reference to this "macos feature" from 1995: https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html https://www.w3.org/Daemon/User/Installation/PrivilegedPorts....
- Zambyte 9mo agohttps://news.ycombinator.com/item?id=18302380 https://news.ycombinator.com/item?id=18302380