Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-02-2005, 04:45 AM   #1
LQ Newbie
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
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?
Old 03-02-2005, 06:37 AM   #2
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
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.
Old 03-02-2005, 07:55 AM   #3
Registered: Sep 2004
Distribution: Gentoo
Posts: 134

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Give Root Access To A Normal User waknauss Linux - Security 2 11-11-2004 09:00 AM
How to give non-root users access to mounted partitions? black hole sun Linux - Software 5 10-28-2004 05:52 PM
What command will give me root access from the gui? Thaidog Linux - Newbie 9 09-21-2004 09:39 AM
Root access to html in apache RJDavison Linux - Newbie 1 05-12-2004 06:45 PM
how to give root ftp access blaha Linux - Software 3 05-30-2003 09:09 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration