<?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 sudo NOPASSWD issue in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sudo-nopasswd-issue/m-p/5211321#M51435</link>
    <description>I am running Red Hat 5.3 and have coded sudo for a user to execute some commands with the NOPASSWD option...&lt;BR /&gt;&lt;BR /&gt;infort1         ALL=(ALL) NOPASSWD: /infinys/network/orl/working/APS/ClusterScripts/stopCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/startCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/manageClusterNode.ksh /infinys/network/orl/working/APS/ClusterScripts/cleanCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/checkCluster.ksh&lt;BR /&gt;&lt;BR /&gt;A sudo -l shows the correct setting that I added:&lt;BR /&gt;-&amp;gt; sudo -l&lt;BR /&gt;User infort1 may run the following commands on this host:&lt;BR /&gt;    (ALL) NOPASSWD: /infinys/network/orl/working/APS/ClusterScripts/stopCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/startCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/manageClusterNode.ksh /infinys/network/orl/working/APS/ClusterScripts/cleanCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/checkCluster.ksh&lt;BR /&gt;[cvoisaf01-&amp;gt;/osg1/home/infort1]&lt;BR /&gt;-&amp;gt;&lt;BR /&gt;&lt;BR /&gt;However, when the infort1 user tries to execute the on of the scripts, it is still asking for the password:&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; sudo /infinys/network/orl/working/APS/ClusterScripts/checkCluster.ksh -c DISTCLUSTER -h /infinys/local/orl/HA&lt;BR /&gt;Password: &lt;BR /&gt;[cvoisaf01-&amp;gt;/osg1/home/infort1] &lt;BR /&gt;-&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas as to why this isn't working ??</description>
    <pubDate>Wed, 25 Nov 2009 13:49:58 GMT</pubDate>
    <dc:creator>MikeL_4</dc:creator>
    <dc:date>2009-11-25T13:49:58Z</dc:date>
    <item>
      <title>sudo NOPASSWD issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sudo-nopasswd-issue/m-p/5211321#M51435</link>
      <description>I am running Red Hat 5.3 and have coded sudo for a user to execute some commands with the NOPASSWD option...&lt;BR /&gt;&lt;BR /&gt;infort1         ALL=(ALL) NOPASSWD: /infinys/network/orl/working/APS/ClusterScripts/stopCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/startCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/manageClusterNode.ksh /infinys/network/orl/working/APS/ClusterScripts/cleanCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/checkCluster.ksh&lt;BR /&gt;&lt;BR /&gt;A sudo -l shows the correct setting that I added:&lt;BR /&gt;-&amp;gt; sudo -l&lt;BR /&gt;User infort1 may run the following commands on this host:&lt;BR /&gt;    (ALL) NOPASSWD: /infinys/network/orl/working/APS/ClusterScripts/stopCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/startCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/manageClusterNode.ksh /infinys/network/orl/working/APS/ClusterScripts/cleanCluster.ksh /infinys/network/orl/working/APS/ClusterScripts/checkCluster.ksh&lt;BR /&gt;[cvoisaf01-&amp;gt;/osg1/home/infort1]&lt;BR /&gt;-&amp;gt;&lt;BR /&gt;&lt;BR /&gt;However, when the infort1 user tries to execute the on of the scripts, it is still asking for the password:&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; sudo /infinys/network/orl/working/APS/ClusterScripts/checkCluster.ksh -c DISTCLUSTER -h /infinys/local/orl/HA&lt;BR /&gt;Password: &lt;BR /&gt;[cvoisaf01-&amp;gt;/osg1/home/infort1] &lt;BR /&gt;-&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas as to why this isn't working ??</description>
      <pubDate>Wed, 25 Nov 2009 13:49:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sudo-nopasswd-issue/m-p/5211321#M51435</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2009-11-25T13:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: sudo NOPASSWD issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sudo-nopasswd-issue/m-p/5211322#M51436</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;Shouldn't it be like so:&lt;BR /&gt;&lt;BR /&gt;infort1  ALL = NOPASSWD: cmd1, cmd2, ...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Goran</description>
      <pubDate>Wed, 25 Nov 2009 14:11:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sudo-nopasswd-issue/m-p/5211322#M51436</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2009-11-25T14:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: sudo NOPASSWD issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sudo-nopasswd-issue/m-p/5211323#M51437</link>
      <description>Do you know how long I've looked at this command line and could't get see it...&lt;BR /&gt;&lt;BR /&gt;Changed to a "," after each command and it worked....&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Nov 2009 14:17:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sudo-nopasswd-issue/m-p/5211323#M51437</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2009-11-25T14:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: sudo NOPASSWD issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sudo-nopasswd-issue/m-p/5211324#M51438</link>
      <description>&lt;!--!*#--&gt;You're missing a comma "," between each allowed command.&lt;BR /&gt;&lt;BR /&gt;Currently your sudoers definition file means that infort1 may run the stopCluster.ksh script, if and only if he specifies the full pathnames of other scripts as command-line arguments. If even one character is out of place in the "mandatory arguments", the command is denied.&lt;BR /&gt;&lt;BR /&gt;This would be the corrected version:&lt;BR /&gt;&lt;BR /&gt;infort1 ALL=(ALL) NOPASSWD: /infinys/network/orl/working/APS/ClusterScripts/stopCluster.ksh, /infinys/network/orl/working/APS/ClusterScripts/startCluster.ksh, /infinys/network/orl/working/APS/ClusterScripts/manageClusterNode.ksh, /infinys/network/orl/working/APS/ClusterScripts/cleanCluster.ksh, /infinys/network/orl/working/APS/ClusterScripts/checkCluster.ksh&lt;BR /&gt;&lt;BR /&gt;Even better would be to use "\" to split the sudoers definition to multiple lines to make it more readable:&lt;BR /&gt;&lt;BR /&gt;infort1 ALL=(ALL) NOPASSWD: /infinys/network/orl/working/APS/ClusterScripts/stopCluster.ksh, \&lt;BR /&gt;     /infinys/network/orl/working/APS/ClusterScripts/startCluster.ksh, \&lt;BR /&gt;     /infinys/network/orl/working/APS/ClusterScripts/manageClusterNode.ksh, \&lt;BR /&gt;     /infinys/network/orl/working/APS/ClusterScripts/cleanCluster.ksh, \&lt;BR /&gt;     /infinys/network/orl/working/APS/ClusterScripts/checkCluster.ksh&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 25 Nov 2009 14:18:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sudo-nopasswd-issue/m-p/5211324#M51438</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-11-25T14:18:06Z</dc:date>
    </item>
  </channel>
</rss>

