<?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: editing sudo file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539010#M369073</link>
    <description>Login as root and Use '#visudo' command to edit sudo file.</description>
    <pubDate>Tue, 24 Nov 2009 10:56:43 GMT</pubDate>
    <dc:creator>akarayil</dc:creator>
    <dc:date>2009-11-24T10:56:43Z</dc:date>
    <item>
      <title>editing sudo file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539009#M369072</link>
      <description>$ /usr/sbin/cmviewcl&lt;BR /&gt;Permission denied to 127.0.0.1&lt;BR /&gt;cmviewcl: Cannot view the cluster configuration: Permission denied.&lt;BR /&gt;This user doesn't have access to view the cluster configuration.&lt;BR /&gt;------------------------------------&lt;BR /&gt;$ sudo /usr/sbin/cmviewcl&lt;BR /&gt;ksh: sudo:  not found&lt;BR /&gt;&lt;BR /&gt;----------------------------------------&lt;BR /&gt;i added entry for operator to do cluster status ,, but getting above msg&lt;BR /&gt;/&amp;gt;cat /etc/sudoers&lt;BR /&gt;User_Alias     ADMINS =  yal, bhav,  murali&lt;BR /&gt;root            ALL = (ALL) ALL&lt;BR /&gt;ADMINS          ALL = NOPASSWD: ALL&lt;BR /&gt;operator        ALL = NOPASSWD: /usr/lbin/modprpw , /usr/lbin/getprpw , /opt/OV/bin/OpC/ovc , /usr/sbin/cmviewcl</description>
      <pubDate>Tue, 24 Nov 2009 10:37:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539009#M369072</guid>
      <dc:creator>madhudeepan</dc:creator>
      <dc:date>2009-11-24T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: editing sudo file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539010#M369073</link>
      <description>Login as root and Use '#visudo' command to edit sudo file.</description>
      <pubDate>Tue, 24 Nov 2009 10:56:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539010#M369073</guid>
      <dc:creator>akarayil</dc:creator>
      <dc:date>2009-11-24T10:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: editing sudo file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539011#M369074</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;wht version of SG are you running, &lt;BR /&gt;you can ahve a look at the following parameters &lt;BR /&gt;USER_NAME&lt;BR /&gt;USER_HOST&lt;BR /&gt;USER_ROLE&lt;BR /&gt; in the cluster config file/package config file.&lt;BR /&gt;regards&lt;BR /&gt;sujit</description>
      <pubDate>Tue, 24 Nov 2009 10:56:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539011#M369074</guid>
      <dc:creator>sujit kumar singh</dc:creator>
      <dc:date>2009-11-24T10:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: editing sudo file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539012#M369075</link>
      <description>&lt;BR /&gt;HI madhu&lt;BR /&gt;&lt;BR /&gt;just create a soft link of sudo and then try&lt;BR /&gt;&lt;BR /&gt;#ln -s /usr/local/bin/sudo /usr/bin/sudo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As sujit worte, you can specefied the user name in configuraion file also&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Viney Kumar</description>
      <pubDate>Tue, 24 Nov 2009 11:03:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539012#M369075</guid>
      <dc:creator>Viney Kumar</dc:creator>
      <dc:date>2009-11-24T11:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: editing sudo file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539013#M369076</link>
      <description>hi &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;refer to page 226 &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3936-90140/B3936-90140.pdf" target="_blank"&gt;http://docs.hp.com/en/B3936-90140/B3936-90140.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;USER_ROLE&lt;BR /&gt;USER_HOST&lt;BR /&gt;USER_NAME&lt;BR /&gt;&lt;BR /&gt;you shall need to do a cmcheckconf and cmapplyconf to effect these changes.&lt;BR /&gt;regards&lt;BR /&gt;sujit</description>
      <pubDate>Tue, 24 Nov 2009 11:05:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539013#M369076</guid>
      <dc:creator>sujit kumar singh</dc:creator>
      <dc:date>2009-11-24T11:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: editing sudo file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539014#M369077</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;a) sudo is in /usr/local/bin, so update your PATH env variable to include /usr/local/bin&lt;BR /&gt;&lt;BR /&gt;b) what happens when you run&lt;BR /&gt;visudo -c ?</description>
      <pubDate>Tue, 24 Nov 2009 11:15:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539014#M369077</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2009-11-24T11:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: editing sudo file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539015#M369078</link>
      <description>As others already wrote,&lt;BR /&gt;with "newer" version of SG you can define roles for non-root users to enable them to do (not full blown) cluster and package administration to varying degrees.&lt;BR /&gt;The role "monitor" already entitles to run the cmview* commands.&lt;BR /&gt;&lt;BR /&gt;You could check if you get some output on e.g.&lt;BR /&gt;&lt;BR /&gt;# cmviewconf|grep -iE '(access polic|user (name|host|role):)'&lt;BR /&gt;&lt;BR /&gt;As for sudo&lt;BR /&gt;&lt;BR /&gt;&amp;gt; $ sudo /usr/sbin/cmviewcl&lt;BR /&gt;&lt;BR /&gt;as which user are you running this?&lt;BR /&gt;I assume as "operator" according to your sudoers entries.&lt;BR /&gt;&lt;BR /&gt;Also as others already mentioned, &lt;BR /&gt;the sudo command is not in the user's ksh PATH.&lt;BR /&gt;Have you compiled your sudo installation from the sources?&lt;BR /&gt;Had you installed the Sudo package from the Internet Express bundle a symlink would have been created to point from /usr/bin/sudo like&lt;BR /&gt;&lt;BR /&gt;# ll /usr/bin/sudo&lt;BR /&gt;lrwxr-xr-x   1 root       sys             27 Mar 28  2006 /usr/bin/sudo -&amp;gt; /opt/iexpress/sudo/bin/sudo&lt;BR /&gt;&lt;BR /&gt;You should also create such a symlink as root after you have found the location of your sudo's executable.&lt;BR /&gt;&lt;BR /&gt;# find /usr /opt -type f -name sudo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Nov 2009 13:02:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editing-sudo-file/m-p/4539015#M369078</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2009-11-24T13:02:49Z</dc:date>
    </item>
  </channel>
</rss>

