You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Oracle Linux: How To Allow Non-Root Users To Bind To Port 80

edited Jul 29, 2022 2:10PM in Linux

Applies to: 

Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]

Linux OS - Version Oracle Linux 7.0 and later

Linux x86-64


Goal

To allow unprivileged users to bind to ports less than 1024


Solution

Port numbers below 1024 are reserved for superuser (root) so a normal OS users cannot bind to ports in this range.

In Linux, there are no user privileges available to grant non-root users to bind ports lower than 1024.

The feasible option would be to use Linux capabilities.

Program capabilities - CAP_NET_BIND_SERVICE can be set to a program to allow binding ports lower than 1024 by non-root user process.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!