<?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: SUDO help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500270#M744940</link>
    <description>One additional question, would that SUDO policy work if I remove the setuid from /usr/bin/su or make it only executable by root? How do I allow only the ADMIN group to be able to su to root without password? Thanks again.</description>
    <pubDate>Wed, 09 Mar 2005 17:06:13 GMT</pubDate>
    <dc:creator>Sajjad Ali_1</dc:creator>
    <dc:date>2005-03-09T17:06:13Z</dc:date>
    <item>
      <title>SUDO help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500266#M744936</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am looking for some help with sudo. I have a script process.sh owned by user TESTA and permission 744. process.sh needs TESTA's environment variables set in .profile for successful run.&lt;BR /&gt;&lt;BR /&gt;I've configured SUDO, so that user TESTB can run process.sh and pick up environment settings of TESTA. But it's not picking up the env variables, in other words, it's not executing TESTA's profile at runtime. How can I make it execute the profile before running the script? I am running this as TESTB: sudo -u TESTA /home/TESTA/process.sh&lt;BR /&gt;&lt;BR /&gt;Host_Alias SVR = HP1&lt;BR /&gt;User_Alias ADMIN = TESTB&lt;BR /&gt;Cmnd_Alias SCRIPTS = /home/TESTA/process.sh&lt;BR /&gt;&lt;BR /&gt;ADMIN SVR = (TESTA) SCRIPTS&lt;BR /&gt;&lt;BR /&gt;Thanks for your help in advance.&lt;BR /&gt;&lt;BR /&gt;SA</description>
      <pubDate>Tue, 08 Mar 2005 12:04:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500266#M744936</guid>
      <dc:creator>Sajjad Ali_1</dc:creator>
      <dc:date>2005-03-08T12:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500267#M744937</link>
      <description>sudo wont run the .profile of that user. you will have to define all required variables in process.sh.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Tue, 08 Mar 2005 12:11:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500267#M744937</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-03-08T12:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500268#M744938</link>
      <description>Okay, Thanks Anil, &lt;BR /&gt;One more question about SUDO. How do I allow certain users to SU to only prod1 user but not anyone else?&lt;BR /&gt;&lt;BR /&gt;Host_Alias SVR = HP1&lt;BR /&gt;User_Alias ADMIN = joe&lt;BR /&gt;Cmnd_Alias SU= /usr/bin/su&lt;BR /&gt;&lt;BR /&gt;ADMIN SVR = (prod1) SU, !root (is this the right systax?)&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Mar 2005 16:33:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500268#M744938</guid>
      <dc:creator>Sajjad Ali_1</dc:creator>
      <dc:date>2005-03-09T16:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500269#M744939</link>
      <description>I would set up the specific su command that they are allowed to use.&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias SUPROD1=/usr/bin/su - prod1&lt;BR /&gt;&lt;BR /&gt;Then for the user:&lt;BR /&gt;&lt;BR /&gt;ADMIN   SVR=SUPROD1&lt;BR /&gt;&lt;BR /&gt;This way if the user enters something other than the above command, they will get an error.  If you just have a few su's that you need to allow, this is relatively easy.</description>
      <pubDate>Wed, 09 Mar 2005 16:49:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500269#M744939</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-03-09T16:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500270#M744940</link>
      <description>One additional question, would that SUDO policy work if I remove the setuid from /usr/bin/su or make it only executable by root? How do I allow only the ADMIN group to be able to su to root without password? Thanks again.</description>
      <pubDate>Wed, 09 Mar 2005 17:06:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500270#M744940</guid>
      <dc:creator>Sajjad Ali_1</dc:creator>
      <dc:date>2005-03-09T17:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500271#M744941</link>
      <description>but the su command will.. try this:&lt;BR /&gt;sudo su - TESTA -c '/home/TESTA/process.sh'</description>
      <pubDate>Wed, 09 Mar 2005 17:31:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500271#M744941</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2005-03-09T17:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: SUDO help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500272#M744942</link>
      <description>Sajjad,&lt;BR /&gt;&lt;BR /&gt;When you put su- in sudo you are wasting sudo. When persons needs to su - to another user let them fill in the password of the user.</description>
      <pubDate>Thu, 10 Mar 2005 04:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-help/m-p/3500272#M744942</guid>
      <dc:creator>Mark Nieuwboer</dc:creator>
      <dc:date>2005-03-10T04:34:13Z</dc:date>
    </item>
  </channel>
</rss>

