LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to give apache root access (https://www.linuxquestions.org/questions/linux-software-2/how-to-give-apache-root-access-296630/)

Roll 03-02-2005 04:45 AM

how to give apache root access
 
hi can anyone help me i need to give apache root access in order for my cgi script to work.

i am using perl to write a cgi script that can be used to administer the dhcp subnet on the web which mean i have to open the dhcpd.conf file and edit the subnet. but i was not able to do so and i suspect that it is because my apache server is not running on root and do not have root access.

so can someone teach me how to change the apache to run on root and have root access to open and replace data on a file?

linuxxed 03-02-2005 06:37 AM

Running apache as root is extremely dangerous! If you still insist - try changing the "user apache" line in httpd.conf.

If you want your application to run as root then change the ownership to root and try setting the suid bit.

uman 03-02-2005 07:55 AM

For your own safety do not ever run apache as root. If you do you are asking to have your system compromised.


All times are GMT -5. The time now is 09:41 PM.