<?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: Restricted SAM: Script aborted in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-sam-script-aborted/m-p/3090188#M144643</link>
    <description>My understanding is that you have to set up the oper account in restricted sam itself. I think you do this with the sam -r command. That lets you authorize the user explicitly.&lt;BR /&gt; &lt;BR /&gt;To get a script execute as another user, the following methodology is reauried:&lt;BR /&gt; &lt;BR /&gt;su - username -c "command"&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;That lets root su - and execute commands as sybase or oracle or anybody.&lt;BR /&gt; &lt;BR /&gt;SEP</description>
    <pubDate>Thu, 09 Oct 2003 22:03:13 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-10-09T22:03:13Z</dc:date>
    <item>
      <title>Restricted SAM: Script aborted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-sam-script-aborted/m-p/3090186#M144641</link>
      <description>I configured a RSAM item for the account "oper" to run a script which owned by account "sybase" in HP-UX 11.0 platform.&lt;BR /&gt;&lt;BR /&gt;If the RSAM item is executed by "sybase", no problem found. But when the RSAM item is executed by "oper", the script aborted.&lt;BR /&gt;&lt;BR /&gt;My understanding is the RSAM would "su" to sybase to execute the script. How come the script abort. Therefore, I insert a line into the script show the user id. The result is:&lt;BR /&gt;&lt;BR /&gt;When run by sybase: The "id" showed:&lt;BR /&gt;uid=101(sybase) gid=101(sybase) groups=103(sybase's 2nd group1),351(sybases's 2nd group2)&lt;BR /&gt;&lt;BR /&gt;When run by oper: The "id" showed:&lt;BR /&gt;uid=101(sybase) gid=101(sybase) groups=20(users),212(oper's 2nd group1),320(oper's 2nd group2),351(oper's 2nd group3)&lt;BR /&gt;&lt;BR /&gt;Do you have any idea about this? Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Oct 2003 21:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-sam-script-aborted/m-p/3090186#M144641</guid>
      <dc:creator>Mad_1</dc:creator>
      <dc:date>2003-10-09T21:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted SAM: Script aborted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-sam-script-aborted/m-p/3090187#M144642</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have a look at other environment varibles required to run that script.&lt;BR /&gt;See when you run the script as sybase it might have all the ENV varaibles but with other user it might not as you are doing just su.&lt;BR /&gt;So see if you are exporting all the varaibles it requires before you run the script.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Rajeev</description>
      <pubDate>Thu, 09 Oct 2003 21:59:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-sam-script-aborted/m-p/3090187#M144642</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-10-09T21:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted SAM: Script aborted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-sam-script-aborted/m-p/3090188#M144643</link>
      <description>My understanding is that you have to set up the oper account in restricted sam itself. I think you do this with the sam -r command. That lets you authorize the user explicitly.&lt;BR /&gt; &lt;BR /&gt;To get a script execute as another user, the following methodology is reauried:&lt;BR /&gt; &lt;BR /&gt;su - username -c "command"&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;That lets root su - and execute commands as sybase or oracle or anybody.&lt;BR /&gt; &lt;BR /&gt;SEP</description>
      <pubDate>Thu, 09 Oct 2003 22:03:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-sam-script-aborted/m-p/3090188#M144643</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-10-09T22:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted SAM: Script aborted</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restricted-sam-script-aborted/m-p/3090189#M144644</link>
      <description>I inserted "env" into the script. Found that all sybase environment variables are included even running by "oper", however, several system environment variables are still remained as "oper", such as&lt;BR /&gt;&lt;BR /&gt;LOGNAME=oper&lt;BR /&gt;HOME=/home/oper&lt;BR /&gt;PWD=/home/oper&lt;BR /&gt;&lt;BR /&gt;It seems problem may be caused by this.&lt;BR /&gt;&lt;BR /&gt;But how to avoid this, how come RSAM won't change this also?</description>
      <pubDate>Thu, 09 Oct 2003 23:04:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restricted-sam-script-aborted/m-p/3090189#M144644</guid>
      <dc:creator>Mad_1</dc:creator>
      <dc:date>2003-10-09T23:04:03Z</dc:date>
    </item>
  </channel>
</rss>

