<?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 Password Problems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072615#M307835</link>
    <description>yep&lt;BR /&gt;&lt;BR /&gt;(user2) NOPASSWD: /path/executable, /path/executable</description>
    <pubDate>Wed, 19 Sep 2007 08:02:40 GMT</pubDate>
    <dc:creator>CRollins</dc:creator>
    <dc:date>2007-09-19T08:02:40Z</dc:date>
    <item>
      <title>Sudo Password Problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072609#M307829</link>
      <description>&lt;BR /&gt;I'm configuring the sudo file user specification. When issuing the command, it's still prompting for a password. The username is an alias and the command string is an alias. &lt;BR /&gt;&lt;BR /&gt;USERNAMEGROUP ALL=(user2) NOPASSWD: COMMANDVAR</description>
      <pubDate>Wed, 19 Sep 2007 07:00:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072609#M307829</guid>
      <dc:creator>CRollins</dc:creator>
      <dc:date>2007-09-19T07:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Password Problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072610#M307830</link>
      <description>Have you specified the actual full path of the command in the COMMANDVAR alias definition?&lt;BR /&gt;&lt;BR /&gt;Sudo is very, very picky about the commands it allows. If your COMMANDVAR is specified like this:&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias COMMANDVAR = ls&lt;BR /&gt;&lt;BR /&gt;it won't work.&lt;BR /&gt;&lt;BR /&gt;You must specify something like&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias COMMANDVAR = /bin/ls&lt;BR /&gt;&lt;BR /&gt;instead.&lt;BR /&gt;&lt;BR /&gt;This behaviour is by design: it ensures the user cannot use commands the sysadmin did not intend by playing tricks with his/her PATH environment variable.&lt;BR /&gt;&lt;BR /&gt;And what's the exact sudo command line you're trying? It should be something like&lt;BR /&gt;&lt;BR /&gt;sudo -u user2 &lt;WHATEVER commandvar="" specifies=""&gt;&lt;BR /&gt;&lt;BR /&gt;If the "-u user2" option is not specified, sudo will assume "-u root" by default... which of course does not match your rule.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/WHATEVER&gt;</description>
      <pubDate>Wed, 19 Sep 2007 07:36:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072610#M307830</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-09-19T07:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Password Problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072611#M307831</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Form:&lt;BR /&gt;&lt;BR /&gt;sudo program-name&lt;BR /&gt;&lt;BR /&gt;Any other form will prompt for a password.&lt;BR /&gt;&lt;BR /&gt;Check that you are not using reserved words in your sudoers configuration.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 19 Sep 2007 07:37:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072611#M307831</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-19T07:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Password Problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072612#M307832</link>
      <description>the full path is there. there are two executables with the full path delimited by a comma and then a space. does spacing matter in the syntax? &lt;BR /&gt;&lt;BR /&gt;the command line string &lt;BR /&gt;&lt;BR /&gt;sudo -u user2 command</description>
      <pubDate>Wed, 19 Sep 2007 07:48:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072612#M307832</guid>
      <dc:creator>CRollins</dc:creator>
      <dc:date>2007-09-19T07:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Password Problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072613#M307833</link>
      <description>USERNAMEGROUP ALL=(user2) NOPASSWD: COMMANDVAR&lt;BR /&gt;&lt;BR /&gt;where USERNAMEGROUP is a User_Alias in the syntax:&lt;BR /&gt;User_Alias USERNAMEGROUP=USER&lt;BR /&gt;where USER above is also in caps (as in /etc/passwd)&lt;BR /&gt;&lt;BR /&gt;where (user2) is a Runas_Alias in the form USER2=user2 and is in caps in the user specification.&lt;BR /&gt;&lt;BR /&gt;where COMMANDVAR is a Cmnd_Alias in the form&lt;BR /&gt;Cmnd_Alias COMMANDVAR=/path/executable,/path/executable</description>
      <pubDate>Wed, 19 Sep 2007 07:59:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072613#M307833</guid>
      <dc:creator>CRollins</dc:creator>
      <dc:date>2007-09-19T07:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Password Problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072614#M307834</link>
      <description>Try running "sudo -l" as an user that belongs to the USERNAMEGROUP. It may ask for a password, but it should then list the commands the user is allowed to run using sudo (unless the configuration options prevent the listing).&lt;BR /&gt;&lt;BR /&gt;Does the output look correct?&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 19 Sep 2007 07:59:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072614#M307834</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-09-19T07:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Password Problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072615#M307835</link>
      <description>yep&lt;BR /&gt;&lt;BR /&gt;(user2) NOPASSWD: /path/executable, /path/executable</description>
      <pubDate>Wed, 19 Sep 2007 08:02:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072615#M307835</guid>
      <dc:creator>CRollins</dc:creator>
      <dc:date>2007-09-19T08:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Password Problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072616#M307836</link>
      <description>if i execute it as follows, then how am i sure its running it as the other user?&lt;BR /&gt;&lt;BR /&gt;sudo program-name</description>
      <pubDate>Wed, 19 Sep 2007 08:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072616#M307836</guid>
      <dc:creator>CRollins</dc:creator>
      <dc:date>2007-09-19T08:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo Password Problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072617#M307837</link>
      <description>the user must type the -u when you are specifying a command to be run under a specific account&lt;BR /&gt;&lt;BR /&gt;/usr/local/bin/sudo -u 'username' 'command_exactly_as_referencec_in_sudoers'</description>
      <pubDate>Thu, 20 Sep 2007 03:31:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-password-problems/m-p/4072617#M307837</guid>
      <dc:creator>Reidmeister</dc:creator>
      <dc:date>2007-09-20T03:31:21Z</dc:date>
    </item>
  </channel>
</rss>

