Install the authbind tool to facilitate launching applications on privileged ports. Also provide several resource definitions for executing a command under authbind.
- Debian, Ubuntu
Include the default recipe in a run list, to get authbind installed.
Simply include the authbind
recipe to get authbind installed and use the providers to manage permission binding.
Allow the glassfish user to bind to port 80.
authbind_port "AuthBind GlassFish Port 80" do
port 80
user 'glassfish'
end
Allow the glassfish user to bind to 10.2.3.4, port 80.
authbind_addr "AuthBind GlassFish 10.2.3.4, Port 80" do
addr '10.2.3.4'
port 80
user 'glassfish'
end