<?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 Apache System User Authentication in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/apache-system-user-authentication/m-p/3324869#M13044</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a script, cgi, that will be run only by root user (744). So how will i configure apache so that apache can tell the server where the script will be run that the user running it is "root"?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;rad</description>
    <pubDate>Wed, 07 Jul 2004 02:38:35 GMT</pubDate>
    <dc:creator>Rad Rioveros</dc:creator>
    <dc:date>2004-07-07T02:38:35Z</dc:date>
    <item>
      <title>Apache System User Authentication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-system-user-authentication/m-p/3324869#M13044</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a script, cgi, that will be run only by root user (744). So how will i configure apache so that apache can tell the server where the script will be run that the user running it is "root"?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;rad</description>
      <pubDate>Wed, 07 Jul 2004 02:38:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-system-user-authentication/m-p/3324869#M13044</guid>
      <dc:creator>Rad Rioveros</dc:creator>
      <dc:date>2004-07-07T02:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Apache System User Authentication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-system-user-authentication/m-p/3324870#M13045</link>
      <description>Generally, when apache runs a cgi script its run as the default user for the httpd server, set in httpd.conf&lt;BR /&gt;&lt;BR /&gt;in general with depot releases of apache thats the www user.&lt;BR /&gt;&lt;BR /&gt;If you try and run a script thats permissions are 744 under those circumstances you will get an error 500 which will indicate the script is malformed and can not run.&lt;BR /&gt;&lt;BR /&gt;Its usually not a terribly good idea for security purposes to run root permission only scripts through the httpd server.  If the server is in a secure chroot jail, you probably can not do it at all.&lt;BR /&gt;&lt;BR /&gt;I would imagine you could configure httpd.conf to run as root user, but that is an immense security openning, and there are already quite a few gotcha's in apache.&lt;BR /&gt;&lt;BR /&gt;I know this does not solve the problem, and in my early security free days i considered setting up a web interface to allow operations to run root scripts.&lt;BR /&gt;&lt;BR /&gt;What i ended up doing was giving them access to the crontab file from the web with authentication and configuring the system to read that file on a daily basis and make it the crontab. That was fraught with problems and was eventually abandoned.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 07 Jul 2004 10:06:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-system-user-authentication/m-p/3324870#M13045</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-07-07T10:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Apache System User Authentication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-system-user-authentication/m-p/3324871#M13046</link>
      <description>If the script is really required to run as root &lt;BR /&gt;although it might be a security issue. &lt;BR /&gt;&lt;BR /&gt;You can do a chmod u+s on the script. Change owner to root and give read and execute permission to the group under which the webserver runs.&lt;BR /&gt;The group os the script needs to be set to the group the webserver runs under. &lt;BR /&gt;&lt;BR /&gt;Make sure to protect the cgi with authentication and is however possible make sure only a designated set of IP adresses can access the CGI. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 11 Jul 2004 15:48:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-system-user-authentication/m-p/3324871#M13046</guid>
      <dc:creator>Tijl Dullers_4</dc:creator>
      <dc:date>2004-07-11T15:48:36Z</dc:date>
    </item>
  </channel>
</rss>

