<?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 env in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436758#M5404</link>
    <description>I don't think I was clear in my request.&lt;BR /&gt;&lt;BR /&gt;Certain commands to be executed via sudo as root require the root environment, esp. $PATH to either find the command, or for a script to execute correctly ... how to get this to work is the question.&lt;BR /&gt;&lt;BR /&gt;e.g. commands in /usr/sbin ... not in normal path</description>
    <pubDate>Tue, 15 Aug 2000 21:19:56 GMT</pubDate>
    <dc:creator>Phil Corchary</dc:creator>
    <dc:date>2000-08-15T21:19:56Z</dc:date>
    <item>
      <title>sudo env</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436756#M5402</link>
      <description>I have installed sudo on my 11.0 K570. The default is to execute commands as if I were root, which is what I want ... how do I get it to use root's environment?&lt;BR /&gt;&lt;BR /&gt;philc</description>
      <pubDate>Tue, 15 Aug 2000 20:58:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436756#M5402</guid>
      <dc:creator>Phil Corchary</dc:creator>
      <dc:date>2000-08-15T20:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: sudo env</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436757#M5403</link>
      <description>The users who are not listed in the sudoers files as "forbidden" to become root can just do the su -.&lt;BR /&gt;&lt;BR /&gt;If they are in the sudoers file but the root access is not itemized, sudo su -&lt;BR /&gt;&lt;BR /&gt;The entry in the sudoers file to prevent root access is&lt;BR /&gt;!/usr/bin/su *root*,!/usr/bin/su "",!/usr/bin/su su -&lt;BR /&gt;&lt;BR /&gt;If the users do not have the above entry in the sudoers file, then sudo su - and this command will be logged (If loggin options are compiled in)</description>
      <pubDate>Tue, 15 Aug 2000 21:15:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436757#M5403</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-15T21:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: sudo env</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436758#M5404</link>
      <description>I don't think I was clear in my request.&lt;BR /&gt;&lt;BR /&gt;Certain commands to be executed via sudo as root require the root environment, esp. $PATH to either find the command, or for a script to execute correctly ... how to get this to work is the question.&lt;BR /&gt;&lt;BR /&gt;e.g. commands in /usr/sbin ... not in normal path</description>
      <pubDate>Tue, 15 Aug 2000 21:19:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436758#M5404</guid>
      <dc:creator>Phil Corchary</dc:creator>
      <dc:date>2000-08-15T21:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: sudo env</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436759#M5405</link>
      <description>Phil:&lt;BR /&gt;&lt;BR /&gt;Try re-sourcing your profile.  As root, do:&lt;BR /&gt;&lt;BR /&gt;# . .profile&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 15 Aug 2000 21:46:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436759#M5405</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-08-15T21:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: sudo env</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436760#M5406</link>
      <description>For various scripts to execute as root via the sudo command, I usually define the SUDO=/usr/local/bin/sudo (or where ever it is)environment variable then the scripts call the commands as so:&lt;BR /&gt;$[SUDO] &lt;SOME command=""&gt;.&lt;BR /&gt;&lt;BR /&gt;As a script executes, each command that calls sudo is being logged.&lt;BR /&gt;&lt;BR /&gt;&lt;/SOME&gt;</description>
      <pubDate>Tue, 15 Aug 2000 22:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436760#M5406</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-15T22:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: sudo env</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436761#M5407</link>
      <description>Yup I know what you mean what I do is usually have an alias to sudo which is a small shell script, that passes $# to the script but sets the root PATH before executing it.</description>
      <pubDate>Tue, 15 Aug 2000 22:37:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436761#M5407</guid>
      <dc:creator>Anthony Goonetilleke</dc:creator>
      <dc:date>2000-08-15T22:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: sudo env</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436762#M5408</link>
      <description>To use root's environment, should be just the sudo su -&lt;BR /&gt;&lt;BR /&gt;To get any users environment is the su - command, this should be no different.&lt;BR /&gt;&lt;BR /&gt;Did you compile? If so, what options did you use?&lt;BR /&gt;&lt;BR /&gt;A site that has good sudo info is &lt;A href="http://www.courtesan.com" target="_blank"&gt;www.courtesan.com&lt;/A&gt;</description>
      <pubDate>Tue, 15 Aug 2000 22:40:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436762#M5408</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-15T22:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: sudo env</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436763#M5409</link>
      <description>Anthony - do you have a sample of that?</description>
      <pubDate>Wed, 16 Aug 2000 15:48:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-env/m-p/2436763#M5409</guid>
      <dc:creator>Phil Corchary</dc:creator>
      <dc:date>2000-08-16T15:48:06Z</dc:date>
    </item>
  </channel>
</rss>

