Jump to content

accessing /root home dir


MK27

Recommended Posts

I'm using apache to work on some cgi stuff at home (linux) -- ie. there are no security issues.  I noticed that since apache is not running as root, I can't access /root.  So I tried changing User and Group in http.conf to root, and I get this:

 

Apache has not been designed to serve pages while\n\trunning as root.  There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.

 

This is just the FC10 "out-of-box" build.  I imagine there is no way around the issue, but it doesn't hurt to ask...

Link to comment
Share on other sites

No way is really safe but you might want to loosen permissions on the /root directory or move the stuff you want apache to be able to access to a more apprpriate directory. I see no reason apache would ever need access to /root

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.