<?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: How to prevent a root running script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095305#M443126</link>
    <description>&lt;!--!*#--&gt;Hi Den:&lt;BR /&gt;&lt;BR /&gt;In you script, add something like:&lt;BR /&gt;&lt;BR /&gt;if (( $(id -u) != 0 )); then&lt;BR /&gt;    echo "Execution by root not allowed"&lt;BR /&gt;    exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
    <pubDate>Fri, 29 Feb 2008 18:06:48 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-02-29T18:06:48Z</dc:date>
    <item>
      <title>How to prevent a root running script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095303#M443124</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I've a script for an application. This script must be only launch by the owner, never with root. &lt;BR /&gt;&lt;BR /&gt;How to prevent it ?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Den</description>
      <pubDate>Fri, 29 Feb 2008 18:00:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095303#M443124</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2008-02-29T18:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a root running script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095304#M443125</link>
      <description>change the root password and don't let anyone have it</description>
      <pubDate>Fri, 29 Feb 2008 18:06:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095304#M443125</guid>
      <dc:creator>Paul Sperry</dc:creator>
      <dc:date>2008-02-29T18:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a root running script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095305#M443126</link>
      <description>&lt;!--!*#--&gt;Hi Den:&lt;BR /&gt;&lt;BR /&gt;In you script, add something like:&lt;BR /&gt;&lt;BR /&gt;if (( $(id -u) != 0 )); then&lt;BR /&gt;    echo "Execution by root not allowed"&lt;BR /&gt;    exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Feb 2008 18:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095305#M443126</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-29T18:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a root running script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095306#M443127</link>
      <description>&lt;!--!*#--&gt;Hi (again) Den:&lt;BR /&gt;&lt;BR /&gt;Ooops, that should have been:&lt;BR /&gt;&lt;BR /&gt;if (( $(id -u) = 0 )); then&lt;BR /&gt;    echo "Execution by root not allowed"&lt;BR /&gt;    exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Feb 2008 18:08:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095306#M443127</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-29T18:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a root running script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095307#M443128</link>
      <description>Huh no ! &lt;BR /&gt;&lt;BR /&gt;because i've just root access during the install of the application and i don't want that unix admin run this script by error. if this script is running by root then log files, xml files ... of the application will be root and if we want to start the application normally the startup will be in error !!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Den</description>
      <pubDate>Fri, 29 Feb 2008 18:11:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095307#M443128</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2008-02-29T18:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a root running script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095308#M443129</link>
      <description>Thanks Ferguson&lt;BR /&gt;&lt;BR /&gt;it's ok with ==&lt;BR /&gt;&lt;BR /&gt;Thanjk you very nuch&lt;BR /&gt;regards&lt;BR /&gt;Den</description>
      <pubDate>Fri, 29 Feb 2008 18:14:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095308#M443129</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2008-02-29T18:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent a root running script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095309#M443130</link>
      <description>Ferguson answer is OK.</description>
      <pubDate>Fri, 29 Feb 2008 18:16:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-prevent-a-root-running-script/m-p/5095309#M443130</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2008-02-29T18:16:41Z</dc:date>
    </item>
  </channel>
</rss>

