<?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: Delegate start/stop services to regular user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088820#M144306</link>
    <description>Ahhhhhhh Thanks Patrick! That's the kind of solution I was looking for!&lt;BR /&gt;&lt;BR /&gt;I thought about these 2 possible work-arounds:&lt;BR /&gt;&lt;BR /&gt;1&amp;gt; use sudo...but then I thought exactlhy what you mention: sudo is for regular-users to run programs as root (not my case..since I want user to user interaction) .... option 1 discarded&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2&amp;gt; create a script using the su line you mention..but then I thought: this user won't be root so the "su" command is going to prompt for a password...then I thought about the "expect" command...and also thought about not liking to hard-code the oracle password in the script..so....option 2 discarded&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and now you came with the best of both worlds!  THANKS AGAIN!</description>
    <pubDate>Wed, 08 Oct 2003 18:13:16 GMT</pubDate>
    <dc:creator>Jorge Fabregas</dc:creator>
    <dc:date>2003-10-08T18:13:16Z</dc:date>
    <item>
      <title>Delegate start/stop services to regular user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088818#M144304</link>
      <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;We're running Oracle 9iAS on two nodes (application server and database server).  I would like to let a regular user start/stop services on the application server. &lt;BR /&gt;&lt;BR /&gt;To do this, the user must be oracle and group dba.  I did my homework and I tried to accomplish this via SUID but unfortunately that didn't work. First of all, let me tell you that SUID works for scripts (many people think that it only works for binary executables).  The problem I had was that everytime the script runs: the UID and GID remains as that of the regular user (and not oracle:dba). I placed the "id" command on the script and then executed the script as "jose".  The output of the id command was:&lt;BR /&gt;&lt;BR /&gt;uid=107(jose) gid=20(users) euid=103(oracle) egid=103(dba)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And then when it was the section to run the oracle commands (dcmctl in this case) I had a bunch of erros. Somehow, these oracle programs (dcm etc...) will look for UID and GID (besides EUID AND EGID).&lt;BR /&gt;&lt;BR /&gt;I even created a c program that calls the script (and the I used SUID and GUID for this program) but I had the same results.&lt;BR /&gt;&lt;BR /&gt;So, my question is...is there a way a regular user can run a script as another user (even with UID and GID as that of the other user) ..not just EUID and EGID?&lt;BR /&gt;&lt;BR /&gt;Can SUDO accomplish this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jorge&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2003 17:48:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088818#M144304</guid>
      <dc:creator>Jorge Fabregas</dc:creator>
      <dc:date>2003-10-08T17:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delegate start/stop services to regular user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088819#M144305</link>
      <description>Sudo is designed to allow non-root users to run commands/programs/scripts as root.&lt;BR /&gt; &lt;BR /&gt;What you could do is write a script that does something like:&lt;BR /&gt;&lt;BR /&gt;#/usr/bin/sh&lt;BR /&gt;su - oracle -c "run_the_start_script"&lt;BR /&gt;&lt;BR /&gt;Set the permissions on the above script so it is just executable by root.  Then set up sudo so that the user can then run that script, which will then su to oracle and run your startup script.</description>
      <pubDate>Wed, 08 Oct 2003 18:00:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088819#M144305</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-10-08T18:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delegate start/stop services to regular user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088820#M144306</link>
      <description>Ahhhhhhh Thanks Patrick! That's the kind of solution I was looking for!&lt;BR /&gt;&lt;BR /&gt;I thought about these 2 possible work-arounds:&lt;BR /&gt;&lt;BR /&gt;1&amp;gt; use sudo...but then I thought exactlhy what you mention: sudo is for regular-users to run programs as root (not my case..since I want user to user interaction) .... option 1 discarded&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2&amp;gt; create a script using the su line you mention..but then I thought: this user won't be root so the "su" command is going to prompt for a password...then I thought about the "expect" command...and also thought about not liking to hard-code the oracle password in the script..so....option 2 discarded&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and now you came with the best of both worlds!  THANKS AGAIN!</description>
      <pubDate>Wed, 08 Oct 2003 18:13:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088820#M144306</guid>
      <dc:creator>Jorge Fabregas</dc:creator>
      <dc:date>2003-10-08T18:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Delegate start/stop services to regular user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088821#M144307</link>
      <description>Jorge,&lt;BR /&gt;&lt;BR /&gt;Sudo is probably your best option as Patrick has already suggested.&lt;BR /&gt;&lt;BR /&gt;Sudo represents only one solution and even though it is free there is another more friendly product call UPM (Unix Privilege Manager) which is distributed by PASSGO (aka Symantec offshoot).&lt;BR /&gt;&lt;BR /&gt;Have a look at the product information just for a comparison :-&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.passgo.com/products/upm/index.htm" target="_blank"&gt;http://www.passgo.com/products/upm/index.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Keith</description>
      <pubDate>Thu, 09 Oct 2003 07:29:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088821#M144307</guid>
      <dc:creator>Keith Bevan_1</dc:creator>
      <dc:date>2003-10-09T07:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Delegate start/stop services to regular user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088822#M144308</link>
      <description>Using SUID on scripts is usually the hackers first method to crack your system. Thus, it is not easy (and certainly not desirable) to have any SUID scripts at all. Indeed, one of your first tasks to would be to remove SUID capability from mountpoints that have user access or will never need executables. Examples of nosuid would be:&lt;BR /&gt; &lt;BR /&gt;/tmp /var /home&lt;BR /&gt;and of course, all Oracle mountpoints for data, index, logs, etc.&lt;BR /&gt; &lt;BR /&gt;sudo is the preferred choice because it logs all activities and you control exactly what each user can do (to the point of specific programs and evemn restricted parameters).</description>
      <pubDate>Thu, 09 Oct 2003 08:19:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088822#M144308</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-10-09T08:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Delegate start/stop services to regular user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088823#M144309</link>
      <description>Hi Jorge,&lt;BR /&gt;&lt;BR /&gt;I've user a licensed software called powerbroker which is quite good. You can download a evauluation copy from their website.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.symark.com" target="_blank"&gt;http://www.symark.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;Sanjay&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Oct 2003 08:30:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/delegate-start-stop-services-to-regular-user/m-p/3088823#M144309</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2003-10-09T08:30:05Z</dc:date>
    </item>
  </channel>
</rss>

