<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Apache question in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026352#M48207</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Best that pages in an httpd server not be owned by root.&lt;BR /&gt;&lt;BR /&gt;Executable code within the page could more easily get root privledges if the page is attacked.&lt;BR /&gt;&lt;BR /&gt;Generally I like all web pages owned by non-priviledged users who can't do anything bad to the system. Generally its the user associated with the user that is posting the content.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Sat, 03 Feb 2007 14:42:31 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2007-02-03T14:42:31Z</dc:date>
    <item>
      <title>Apache question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026347#M48202</link>
      <description>I have a question regarding ownership of the directory that contains the page files.&lt;BR /&gt;&lt;BR /&gt;Server OS:Fedora Core 2&lt;BR /&gt;Apache: 2.0.52 &lt;BR /&gt;Web page root dir: /home/www&lt;BR /&gt;There are several virtual host web pages hosted on this one server each has its own directory under /home/www.&lt;BR /&gt;&lt;BR /&gt;Currently the ownership of the files and directories varies between root and a user that no longer works here.  I have been asked to clean up the ownerships.  &lt;BR /&gt;&lt;BR /&gt;Question: Are there standard practices for assigning ownerships to the web page files.&lt;BR /&gt;&lt;BR /&gt;Any guidance would be most helpful.  I can provide more information on the servers configuration if needed.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Gary Glick&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Feb 2007 13:38:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026347#M48202</guid>
      <dc:creator>Gary Glick</dc:creator>
      <dc:date>2007-02-02T13:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Apache question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026348#M48203</link>
      <description>This really depends of the web pages served. The minimal permissions are those required to allow the apache user read the files.&lt;BR /&gt;&lt;BR /&gt;For example, if httpd runs as user apache, group apache (check the User and Group directives in your conf file), then your files can be owned by root:apache with 644 permissions and directories with 755 permissions.&lt;BR /&gt;&lt;BR /&gt;You can use the find command to change the permissions:&lt;BR /&gt;&lt;BR /&gt;chown -R root.apache /home/www&lt;BR /&gt;find /home/www -type f -exec chmod 644 {} \;&lt;BR /&gt;find /home/www -type d -exec chmod 755 {} \;</description>
      <pubDate>Fri, 02 Feb 2007 14:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026348#M48203</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-02-02T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Apache question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026349#M48204</link>
      <description>Thank you for the prompt reply.&lt;BR /&gt;I'll give your suggestion a try.&lt;BR /&gt;&lt;BR /&gt;In your suggestion:&lt;BR /&gt;chown -R root.apache /home/www&lt;BR /&gt;find /home/www -type f -exec chmod 644 {} \;&lt;BR /&gt;find /home/www -type d -exec chmod 755 {} \;&lt;BR /&gt;&lt;BR /&gt;I think the chown command needs to be root:apache.&lt;BR /&gt;&lt;BR /&gt;I'll send some points your way shortly.&lt;BR /&gt;&lt;BR /&gt;thanks again.</description>
      <pubDate>Fri, 02 Feb 2007 17:11:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026349#M48204</guid>
      <dc:creator>Gary Glick</dc:creator>
      <dc:date>2007-02-02T17:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Apache question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026350#M48205</link>
      <description>Yes, the chown parameters should be root:apache rather than root.apache.</description>
      <pubDate>Fri, 02 Feb 2007 18:21:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026350#M48205</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-02-02T18:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Apache question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026351#M48206</link>
      <description>In Linux normally you can use:&lt;BR /&gt;&lt;BR /&gt;chown user.group&lt;BR /&gt;&lt;BR /&gt;Or&lt;BR /&gt;&lt;BR /&gt;chown user:group&lt;BR /&gt;&lt;BR /&gt;This won't work in other Unix flavors</description>
      <pubDate>Sat, 03 Feb 2007 08:05:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026351#M48206</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-02-03T08:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Apache question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026352#M48207</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Best that pages in an httpd server not be owned by root.&lt;BR /&gt;&lt;BR /&gt;Executable code within the page could more easily get root privledges if the page is attacked.&lt;BR /&gt;&lt;BR /&gt;Generally I like all web pages owned by non-priviledged users who can't do anything bad to the system. Generally its the user associated with the user that is posting the content.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sat, 03 Feb 2007 14:42:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026352#M48207</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-02-03T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Apache question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026353#M48208</link>
      <description>Thank you all for your help.&lt;BR /&gt;I have been able to get the ownership/ permissions issues resolved.&lt;BR /&gt;&lt;BR /&gt;Gary</description>
      <pubDate>Mon, 26 Feb 2007 12:07:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-question/m-p/5026353#M48208</guid>
      <dc:creator>Gary Glick</dc:creator>
      <dc:date>2007-02-26T12:07:39Z</dc:date>
    </item>
  </channel>
</rss>

