<?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 - Cmnd_Alias errors in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071702#M307616</link>
    <description>you need the full path for cp and ls&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias PROCESSLOADS = /usr/bin/cp,/usr/bin/ls&lt;BR /&gt;&lt;BR /&gt;USR1 ALL = (USR2) PROCESSLOADS&lt;BR /&gt;&lt;BR /&gt;for the /etc/sudoers, it should be created once you save the file, if not just create a link to the original file&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 18 Sep 2007 09:07:16 GMT</pubDate>
    <dc:creator>Aussan</dc:creator>
    <dc:date>2007-09-18T09:07:16Z</dc:date>
    <item>
      <title>Sudo - Cmnd_Alias errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071697#M307611</link>
      <description>I'm setting up the sudoers file for USR1 to run the PROCESSLOADS commands as USR2. I'm getting syntax errors on Cmnd_Alias. Is there something wrong with this syntax? It looks right. This is driving me nuts. Please help. I would also like to add the NOPASSWD option to the user speicification but I want to get these piece working first. &lt;BR /&gt;&lt;BR /&gt;@line 13 -&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias PROCESSLOADS=cp,ls&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;@line 32 -&amp;gt;&lt;BR /&gt;&lt;BR /&gt;USR1 ALL=(USR2) PROCESSLOADS&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sudoers file: syntax error, line 13 &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;Warning: undeclared Cmnd_Alias `PROCESSLOADS' referenced near line 32&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also there isnt an /etc/sudoers file default upon installation. The default path when using visudo is /usr/local/etc/sudoers.tmp. Do I need to create /etc/sudoers? &lt;BR /&gt;&lt;BR /&gt;Thanks!!</description>
      <pubDate>Mon, 17 Sep 2007 14:56:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071697#M307611</guid>
      <dc:creator>CRollins</dc:creator>
      <dc:date>2007-09-17T14:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo - Cmnd_Alias errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071698#M307612</link>
      <description>You must include full path for the commands in the alias.&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias PROCESSLOADS = /usr/bin/cp, /usr/bin/ls</description>
      <pubDate>Mon, 17 Sep 2007 15:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071698#M307612</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2007-09-17T15:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo - Cmnd_Alias errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071699#M307613</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I'm guessing you are using sudo from Internet Express. It keeps the sudoers file in the /opt filesystem.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 17 Sep 2007 15:35:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071699#M307613</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-17T15:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo - Cmnd_Alias errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071700#M307614</link>
      <description>use visudo command, it will open sudoers file for you. Use full path of cammand.&lt;BR /&gt;# sudoers file.&lt;BR /&gt;#&lt;BR /&gt;# This file MUST be edited with the 'visudo' command as root.&lt;BR /&gt;#&lt;BR /&gt;# See the man page for the details on how to write a sudoers file.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;# Host alias specification&lt;BR /&gt;&lt;BR /&gt;# User alias specification&lt;BR /&gt;User_Alias &lt;BR /&gt;# Cmnd alias specification&lt;BR /&gt;Cmnd_Alias     &lt;BR /&gt;# User privilege specification&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2007 03:27:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071700#M307614</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-09-18T03:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo - Cmnd_Alias errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071701#M307615</link>
      <description>you need the full path for cp and ls&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias PROCESSLOADS = /usr/bin/cp,/usr/bin/ls&lt;BR /&gt;&lt;BR /&gt;USR1 ALL = (USR2) PROCESSLOADS&lt;BR /&gt;&lt;BR /&gt;also my sudoers didn't like it when i did not have spaces between the = the user ..etc&lt;BR /&gt;&lt;BR /&gt;i don't know why but you might want to try that also&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2007 09:06:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071701#M307615</guid>
      <dc:creator>Aussan</dc:creator>
      <dc:date>2007-09-18T09:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo - Cmnd_Alias errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071702#M307616</link>
      <description>you need the full path for cp and ls&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias PROCESSLOADS = /usr/bin/cp,/usr/bin/ls&lt;BR /&gt;&lt;BR /&gt;USR1 ALL = (USR2) PROCESSLOADS&lt;BR /&gt;&lt;BR /&gt;for the /etc/sudoers, it should be created once you save the file, if not just create a link to the original file&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Sep 2007 09:07:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071702#M307616</guid>
      <dc:creator>Aussan</dc:creator>
      <dc:date>2007-09-18T09:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo - Cmnd_Alias errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071703#M307617</link>
      <description>I added the full path and im getting the same error. I used ls and cp as the example but its actually an executatble for the application. I'm giving the application person access to run their processes. The file has execute permission on the file, yet Cmnd_Alias is still giving undeclared alias errors.</description>
      <pubDate>Tue, 18 Sep 2007 12:08:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071703#M307617</guid>
      <dc:creator>CRollins</dc:creator>
      <dc:date>2007-09-18T12:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo - Cmnd_Alias errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071704#M307618</link>
      <description>ok - i fixed that but its ignoring the NOPASSWD switch. &lt;BR /&gt;&lt;BR /&gt;user &lt;BR /&gt;&lt;BR /&gt;USERNAMEGROUP ALL=(user2) NOPASSWD: COMMANDVAR</description>
      <pubDate>Tue, 18 Sep 2007 12:19:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-cmnd-alias-errors/m-p/4071704#M307618</guid>
      <dc:creator>CRollins</dc:creator>
      <dc:date>2007-09-18T12:19:53Z</dc:date>
    </item>
  </channel>
</rss>

