<?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: parse error in /etc/sudoers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199044#M463086</link>
    <description>HI,&lt;BR /&gt;&amp;gt;&amp;gt;But im getting "sudo: parse error in /etc/sudoers" error for a cmd of Linux and Aix,&lt;BR /&gt;&lt;BR /&gt;Post your error messages for Linux and AIX.&lt;BR /&gt;&lt;BR /&gt;for aix server your grep and awk statement are wrongly placed.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
    <pubDate>Tue, 15 Sep 2009 05:24:53 GMT</pubDate>
    <dc:creator>Suraj K Sankari</dc:creator>
    <dc:date>2009-09-15T05:24:53Z</dc:date>
    <item>
      <title>sudo: parse error in /etc/sudoers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199041#M463083</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Im trying to make a cmd alias in single sudoers file for HP-UX, solaris, Aix and Linux servers.&lt;BR /&gt;But im getting "sudo: parse error in /etc/sudoers" error for a cmd of Linux and Aix,&lt;BR /&gt;&lt;BR /&gt;Linux:--&lt;BR /&gt;/bin/rpm -qa --queryformat %{NAME}:%{VERSION}\\n 2&amp;gt;/dev/null,\&lt;BR /&gt;&lt;BR /&gt;Aix:--&lt;BR /&gt;/usr/sysv/bin/df -lv | grep -vi filesystem  | grep -i '\/dev\/' | awk{'print $2'} 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;Please suggest</description>
      <pubDate>Tue, 15 Sep 2009 05:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199041#M463083</guid>
      <dc:creator>Viney Kumar</dc:creator>
      <dc:date>2009-09-15T05:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: sudo: parse error in /etc/sudoers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199042#M463084</link>
      <description>Viney ,&lt;BR /&gt;&lt;BR /&gt;Try running the command manually, then put it into sudoers file . If the command is not successful the parse error is obvious. &lt;BR /&gt;It looks in the last line "grep -i '\/dev\/' : may be having problem, Try running the command from command prompt. Is it going through.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Raj.</description>
      <pubDate>Tue, 15 Sep 2009 05:17:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199042#M463084</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-09-15T05:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: sudo: parse error in /etc/sudoers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199043#M463085</link>
      <description>Also note the awk command given  is wrong : &lt;BR /&gt;&lt;BR /&gt;awk{'print $2'}  # wrong.&lt;BR /&gt;&lt;BR /&gt;should be :&lt;BR /&gt;&lt;BR /&gt;awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Tue, 15 Sep 2009 05:19:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199043#M463085</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2009-09-15T05:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: sudo: parse error in /etc/sudoers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199044#M463086</link>
      <description>HI,&lt;BR /&gt;&amp;gt;&amp;gt;But im getting "sudo: parse error in /etc/sudoers" error for a cmd of Linux and Aix,&lt;BR /&gt;&lt;BR /&gt;Post your error messages for Linux and AIX.&lt;BR /&gt;&lt;BR /&gt;for aix server your grep and awk statement are wrongly placed.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Tue, 15 Sep 2009 05:24:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199044#M463086</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-09-15T05:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: sudo: parse error in /etc/sudoers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199045#M463087</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;Im rectify awk error but still error is coming&lt;BR /&gt;&lt;BR /&gt;AIX:--&lt;BR /&gt;/usr/sysv/bin/df -lv|grep -vi filesystem|grep -i '\/dev\/' | awk '{print $2}' 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;error:--&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; /etc/sudoers: syntax error near line 61 &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;sudo: parse error in /etc/sudoers near line 61&lt;BR /&gt;sudo: no valid sudoers sources found, quitting&lt;BR /&gt;&lt;BR /&gt;For Linux:--&lt;BR /&gt;&lt;BR /&gt;/bin/rpm -qa --queryformat %{NAME}:%{VERSION}\\n 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;error:-&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sudoers file: syntax error, line 102 &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;sudo: parse error in /etc/sudoers near line 102&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Sep 2009 06:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199045#M463087</guid>
      <dc:creator>Viney Kumar</dc:creator>
      <dc:date>2009-09-15T06:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: sudo: parse error in /etc/sudoers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199046#M463088</link>
      <description>find the alias:-&lt;BR /&gt;&lt;BR /&gt;For linux&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias      DISCOVERY=/bin/uname -s,/bin/uname -a,/usr/bin/nslookup `hostname` 2&amp;gt;/dev/null,\&lt;BR /&gt;                                /usr/bin/hostid 2&amp;gt;/dev/null,/sbin/ifconfig -a&amp;gt;/dev/null,\&lt;BR /&gt;                                /sbin/fdisk -l 2&amp;gt;/dev/null,/bin/df -TPl -x tmpfs 2&amp;gt;/dev/null,\&lt;BR /&gt;                        /usr/sbin/dmidecode 2&amp;gt;/dev/null,/sbin/fdisk -l 2&amp;gt;/dev/null,/bin/df -TPl -x tmpfs 2&amp;gt;/dev/null,\&lt;BR /&gt;                /bin/cat /etc/sysconfig/hwconf 2&amp;gt;/dev/null,/bin/cat /proc/cpuinfo 2&amp;gt;/dev/null,\&lt;BR /&gt;                /bin/rpm -qa --queryformat %{NAME}:%{VERSION}\\n 2&amp;gt;/dev/null,/usr/sbin/dmidecode,\&lt;BR /&gt;                /bin/cat /proc/meminfo 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;For Aix:--&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias      D1=/usr/sysv/bin/df -lv|grep -vi filesystem|grep -i '\/dev\/' | awk '{print $2}' 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Both cmd working from prompt.&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Sep 2009 06:45:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199046#M463088</guid>
      <dc:creator>Viney Kumar</dc:creator>
      <dc:date>2009-09-15T06:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: sudo: parse error in /etc/sudoers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199047#M463089</link>
      <description>This can be done via modify exsisting cmd&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Mon, 28 Sep 2009 06:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-parse-error-in-etc-sudoers/m-p/5199047#M463089</guid>
      <dc:creator>Viney Kumar</dc:creator>
      <dc:date>2009-09-28T06:01:50Z</dc:date>
    </item>
  </channel>
</rss>

