I would like to start JBoss process with root user, because I have to bind ports (<1024).
But after initiating the process, I have to drop privilege of the initiated process. Is it possible? If yes, please provide some info on it.
I would like to start JBoss process with root user, because I have to bind ports (<1024).
But after initiating the process, I have to drop privilege of the initiated process. Is it possible? If yes, please provide some info on it.
Some options are:
authbind
, a tool to allow non-root processes to bind to low numbered ports https://superuser.com/a/892391/62123setcap
, to give process only the capability it needs What are the different ways to set file permissions etc on gnu/linuxdocker
: run in docker, and have docker forward port 80 to the jboss container.
setcap
for how to bind ports < 1024 without being root user. Similar to setuid, but for just the capabilities that you want ( https://unix.stackexchange.com/q/101263/4778 ). – ctrl-alt-delor Nov 17 '17 at 15:14