I have a piece of daemon code that is supposed to be invoked by jsvc. The code needs to bind to a privileged port below 1024. I do not have root access so I am thinking of authbind. I tried:
authbind --deep jsvc ...
but in jsvc.err
, it still says:
java.net.SocketException: Permission denied
Am I doing anything wrong?
Yes, you probably forgot to configure authbind.
If you want to allow user
jo
to bind port80
you have to run the following commands as root.Read the Running network services as a non-root user from the Debian Administration Guide for more information.