<?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 execute as root? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467466#M775181</link>
    <description>How can I set a shell script to execute as root by another user. I don't want the user to be able to modify the script.</description>
    <pubDate>Mon, 27 Nov 2000 14:06:43 GMT</pubDate>
    <dc:creator>Joseph Hoh</dc:creator>
    <dc:date>2000-11-27T14:06:43Z</dc:date>
    <item>
      <title>execute as root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467466#M775181</link>
      <description>How can I set a shell script to execute as root by another user. I don't want the user to be able to modify the script.</description>
      <pubDate>Mon, 27 Nov 2000 14:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467466#M775181</guid>
      <dc:creator>Joseph Hoh</dc:creator>
      <dc:date>2000-11-27T14:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: execute as root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467467#M775182</link>
      <description>Well, I generally have anything that needs root to run it....run by root.  That way I don't have to worry about the other user at all.  If a job needs to be run by Oracle than as root I include the scripts into my cron jobs and set up a small file to do the su to Oracle and run the oracle job.  I do the same for other users.&lt;BR /&gt;&lt;BR /&gt;What I'm saying is....as root I will run your jobs...but a user never runs root jobs.  That way I know the jobs stay 'untouched'.&lt;BR /&gt;&lt;BR /&gt;Just a thought,</description>
      <pubDate>Mon, 27 Nov 2000 14:13:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467467#M775182</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2000-11-27T14:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: execute as root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467468#M775183</link>
      <description>Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;I agree with Rita, but I know it's sometimes unpractical.&lt;BR /&gt;&lt;BR /&gt;An alternate solution would be to use 'SUDO' that you can freely download at the following address:&lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo/sudo.html" target="_blank"&gt;http://www.courtesan.com/sudo/sudo.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This utility allows you do define 'who' may run 'what' and under which usedid. It's quite powerful.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Nov 2000 14:17:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467468#M775183</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-11-27T14:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: execute as root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467469#M775184</link>
      <description>setting to effective (not real) user id can be done with sticky bit.&lt;BR /&gt;&lt;BR /&gt;The first line of the script must contain ie:&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;&lt;BR /&gt;Change owner of the script&lt;BR /&gt;&lt;BR /&gt;chown root &amp;lt;script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Set sticky bit&lt;BR /&gt;&lt;BR /&gt;chmod 5755 &amp;lt;script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Nov 2000 14:19:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467469#M775184</guid>
      <dc:creator>Rainer_1</dc:creator>
      <dc:date>2000-11-27T14:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: execute as root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467470#M775185</link>
      <description>Jeff:&lt;BR /&gt;&lt;BR /&gt;You can do this by setting the set-uid bit.  The script in question should be owned by root.  Do 'chmod 45xx' on the script and when you run it from a non-root account, the effective uid will be that of root.&lt;BR /&gt;&lt;BR /&gt;This is a VERY DANGEROUS practice.  A better alternative is to use the 'sudo' utility or restricted SAM for functions you need to confer to trusted users.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 27 Nov 2000 14:23:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467470#M775185</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-11-27T14:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: execute as root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467471#M775186</link>
      <description>Hi there.&lt;BR /&gt;Another hint. You should run this scripts under ksh, otherwise you could have weird results. I stepped into that trap last week&lt;BR /&gt;during an isnatll of 8.1.7&lt;BR /&gt;Rgds&lt;BR /&gt;Alexander M. Ermes&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Dec 2000 07:40:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-as-root/m-p/2467471#M775186</guid>
      <dc:creator>Alexander M. Ermes</dc:creator>
      <dc:date>2000-12-05T07:40:54Z</dc:date>
    </item>
  </channel>
</rss>

