Solaris 10 Non-Root User...Port 80
By tls on Mar 04, 2007
Tonight, I found out an easy way to allow a non-root user to bind to a privileged port (<1024) on Solaris 10. I've done this before with RBAC (i.e. exec_attr, prof_attr), but knew there was an easy one line command to provide this privilege to a non-root user.
Here's the simple command. You must run it as root.
# usermod -K defaultpriv=basic,net_privaddr tomcat
Now the user tomcat can run applications that need to bind to privileged ports (i.e. port 80). For those taking notes, this addes a line into the /etc/user_attr file:
Hope this might help another basic Solaris user out there like me. If an expert Solaris user has a different opinion, please comment.