<?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 Script not executing as root. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903772#M404584</link>
    <description>I am getting this error message while trying to execute a script from within another script as root. &lt;BR /&gt;&lt;BR /&gt;ksh: /usr/local/bin/alltohold.ksh: cannot execute&lt;BR /&gt;&lt;BR /&gt;The alltohold.ksh is owned by root and below are the permissions. The root's default shell is /sbin/sh&lt;BR /&gt;&lt;BR /&gt;-rwx------   1 root       sys           3560 Apr 22 01:10 alltohold.ksh&lt;BR /&gt;&lt;BR /&gt;Any idea why this is not executing. Also this was working fine in the past.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
    <pubDate>Tue, 24 May 2005 18:30:46 GMT</pubDate>
    <dc:creator>Chirag Parekh</dc:creator>
    <dc:date>2005-05-24T18:30:46Z</dc:date>
    <item>
      <title>Script not executing as root.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903772#M404584</link>
      <description>I am getting this error message while trying to execute a script from within another script as root. &lt;BR /&gt;&lt;BR /&gt;ksh: /usr/local/bin/alltohold.ksh: cannot execute&lt;BR /&gt;&lt;BR /&gt;The alltohold.ksh is owned by root and below are the permissions. The root's default shell is /sbin/sh&lt;BR /&gt;&lt;BR /&gt;-rwx------   1 root       sys           3560 Apr 22 01:10 alltohold.ksh&lt;BR /&gt;&lt;BR /&gt;Any idea why this is not executing. Also this was working fine in the past.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 24 May 2005 18:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903772#M404584</guid>
      <dc:creator>Chirag Parekh</dc:creator>
      <dc:date>2005-05-24T18:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script not executing as root.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903773#M404585</link>
      <description>Are both scripts ksh?&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;&lt;BR /&gt;How are you calling it?&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 24 May 2005 19:25:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903773#M404585</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-05-24T19:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script not executing as root.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903774#M404586</link>
      <description>both scripts are ksh and the script is called from another script as follows:&lt;BR /&gt;&lt;BR /&gt;su oracle -c $BIN/alltohold.ksh&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 24 May 2005 19:37:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903774#M404586</guid>
      <dc:creator>Chirag Parekh</dc:creator>
      <dc:date>2005-05-24T19:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script not executing as root.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903775#M404587</link>
      <description>"su oracle -c $BIN/alltohold.ksh"&lt;BR /&gt;&lt;BR /&gt;The script is running as the oracle user not as root. Give oracle execute permission to resolve.&lt;BR /&gt;&lt;BR /&gt;-denver</description>
      <pubDate>Tue, 24 May 2005 20:00:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903775#M404587</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2005-05-24T20:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script not executing as root.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903776#M404588</link>
      <description>There's your answer - oracle does NOT have access to the file.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 24 May 2005 21:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903776#M404588</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-05-24T21:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Script not executing as root.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903777#M404589</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;By running your script like this:&lt;BR /&gt;&lt;BR /&gt;su oracle -c $BIN/alltohold.ksh&lt;BR /&gt;&lt;BR /&gt;The user oracle is the one that execute the script, give the user oracle the permission to run the script or change the script ownership to oracle.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Paul</description>
      <pubDate>Tue, 24 May 2005 21:55:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903777#M404589</guid>
      <dc:creator>Paul_481</dc:creator>
      <dc:date>2005-05-24T21:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Script not executing as root.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903778#M404590</link>
      <description>Hi,&lt;BR /&gt;try to give oracle user permision to execute&lt;BR /&gt;this script.&lt;BR /&gt;good luck,&lt;BR /&gt;</description>
      <pubDate>Wed, 25 May 2005 06:39:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903778#M404590</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-05-25T06:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script not executing as root.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903779#M404591</link>
      <description>BTW - don't know if it was intentional or not - but if you &lt;BR /&gt;&lt;BR /&gt;su oracle &lt;BR /&gt;- you won't source oracle's profile - to do so, you need to &lt;BR /&gt;&lt;BR /&gt;su - oracle&lt;BR /&gt;&lt;BR /&gt;Rgds..Geoff</description>
      <pubDate>Wed, 25 May 2005 08:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903779#M404591</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-05-25T08:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script not executing as root.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903780#M404592</link>
      <description>Thanks for all the responses. I have changed the permission on the file so that Oracle can execute it.</description>
      <pubDate>Wed, 25 May 2005 10:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903780#M404592</guid>
      <dc:creator>Chirag Parekh</dc:creator>
      <dc:date>2005-05-25T10:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script not executing as root.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903781#M404593</link>
      <description>Changed the permission on the script so that Oracle can execute it.</description>
      <pubDate>Wed, 25 May 2005 10:59:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-not-executing-as-root/m-p/4903781#M404593</guid>
      <dc:creator>Chirag Parekh</dc:creator>
      <dc:date>2005-05-25T10:59:43Z</dc:date>
    </item>
  </channel>
</rss>

