Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache run CGI with user different than nobody

Status
Not open for further replies.

paddgu77

Programmer
Feb 28, 2005
5
US
Is there a way other than using suExec to run a CGI script invoked by apache with user name different than nobody.

thanks
padhu.
 
in your apache configuration /etc/httpd/conf/httpd.conf, there are system variables --

User
Group

In earlier version, the default is "nobody" for both and apache 2.0 changed the default to "apache" for both User and Group. If you want to name them something else, just edit this httpd.conf file to whatever you like such as --

User my_name
Group my_name

~ Gary
 
You should note however, there is potential for security issues for allowing apache to run as a user (expecially root)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top