Gopi Desaboyina Solaris Blogs

Just another weblog

Running Apache(webserver) as non-root in Solaris

I always have this issue to bind to port # 80 we need to root account or setup rbac with admin privileges, so that it can bind to port 80.But recently I came to know different method, where you can grant only permission to bind to privileged ports ( <1024). Here we go, this is how we grant privileges.

# rolemod -K defaultpriv=basic,net_privaddr apachmgr

This way in your apache config you don’t have to use nobody for User directive. Starting Solaris 10, they’ve reserved webservd for any webservers. you should start using this. nobody is actually reserved for NFS access. Follow this link for details.


June 3, 2009 - Posted by | Solaris |

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: