<?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 PHP or PERL CGI script permission question in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/php-or-perl-cgi-script-permission-question/m-p/3594534#M103877</link>
    <description>I want to create a web control panel for clients to check his quota or change password but PHP or PERL CGI execute script using the 'www' user permission. How can I override this? Does the world have any resources about doing this?&lt;BR /&gt;&lt;BR /&gt;THX.</description>
    <pubDate>Tue, 02 Aug 2005 04:29:31 GMT</pubDate>
    <dc:creator>paul.lkw</dc:creator>
    <dc:date>2005-08-02T04:29:31Z</dc:date>
    <item>
      <title>PHP or PERL CGI script permission question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/php-or-perl-cgi-script-permission-question/m-p/3594534#M103877</link>
      <description>I want to create a web control panel for clients to check his quota or change password but PHP or PERL CGI execute script using the 'www' user permission. How can I override this? Does the world have any resources about doing this?&lt;BR /&gt;&lt;BR /&gt;THX.</description>
      <pubDate>Tue, 02 Aug 2005 04:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/php-or-perl-cgi-script-permission-question/m-p/3594534#M103877</guid>
      <dc:creator>paul.lkw</dc:creator>
      <dc:date>2005-08-02T04:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: PHP or PERL CGI script permission question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/php-or-perl-cgi-script-permission-question/m-p/3594535#M103878</link>
      <description>Hi Paul,&lt;BR /&gt; &lt;BR /&gt;you could install sudo, and edit a sudoers file (i.e. as root run visudo) where you would setup rules for user www to run the commands that were required for the quotas checking.&lt;BR /&gt; &lt;BR /&gt;You can either get the sources from here &lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/" target="_blank"&gt;http://www.courtesan.com/sudo/&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;or if you happen to run 11i you could even get a prepackaged sudo depot from HP&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111" target="_blank"&gt;http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Another option maybe would be to get the Apache sources (if you're happening to be running this webserver) and build it for SuExec support&lt;BR /&gt;(albeit it was originally meant to rather restrict than empower rights)&lt;BR /&gt;Please see&lt;BR /&gt;  &lt;BR /&gt;&lt;A href="http://httpd.apache.org/docs/2.0/suexec.html" target="_blank"&gt;http://httpd.apache.org/docs/2.0/suexec.html&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Anyway, whatever cludge you use please bear in mind to devise utmost care with your CGIs as the restricted rights of httpd child procs were introduced for very good reasons.&lt;BR /&gt;Also you should devise some sort of taint checking of any client input, like Perl guarantees by its -T switch.&lt;BR /&gt;(if you happen to write your CGIs in Perl,&lt;BR /&gt;please also read "perldoc perlsec")&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt;Ralph</description>
      <pubDate>Tue, 02 Aug 2005 05:42:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/php-or-perl-cgi-script-permission-question/m-p/3594535#M103878</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2005-08-02T05:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: PHP or PERL CGI script permission question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/php-or-perl-cgi-script-permission-question/m-p/3594536#M103879</link>
      <description>You could just make your CGI write to a file and have a background process that runs as whatever account you want that monitors this file and then executes whatever you need done.&lt;BR /&gt;&lt;BR /&gt;As mentioned, be careful however you implement it.  You don't want to open your server up to the world.</description>
      <pubDate>Tue, 02 Aug 2005 09:36:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/php-or-perl-cgi-script-permission-question/m-p/3594536#M103879</guid>
      <dc:creator>Pat Lieberg</dc:creator>
      <dc:date>2005-08-02T09:36:26Z</dc:date>
    </item>
  </channel>
</rss>

