Categories
Mastering Development System & Network

linux capabilities to read environment variables?

I’d like to run a service as a non-privileged user, but it needs to bind to a system port number (i.e. less than 1024), so I give it setcap ‘cap_net_bind_service=+ep’ <path for service>, all good. Problem is, on startup, the service reads environment vars and for some reason it can’t do that when it has […]

Categories
Linux Mastering Development

linux capabilities to read environment variables?

I’d like to run a service as a non-privileged user, but it needs to bind to a system port number (i.e. less than 1024), so I give it setcap ‘cap_net_bind_service=+ep’ <path for service>, all good. Problem is, on startup, the service reads environment vars and for some reason it can’t do that when it has […]

Categories
Mastering Development System & Network

linux capabilities to read environment variables?

I’d like to run a service as a non-privileged user, but it needs to bind to a system port number (i.e. less than 1024), so I give it setcap ‘cap_net_bind_service=+ep’ <path for service>, all good. Problem is, on startup, the service reads environment vars and for some reason it can’t do that when it has […]