<?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: problem in sudo in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234817#M329124</link>
    <description>what i found is that there are different locations of sudoers file...like&lt;BR /&gt;&lt;BR /&gt;in most of my  servers i found sudoers file at&lt;BR /&gt;&lt;BR /&gt;/opt/sudo/etc/sudoers&lt;BR /&gt;&lt;BR /&gt;whereas in some it was at /usr/local/sbin&lt;BR /&gt;&lt;BR /&gt;and in some it resides at /etc/sudoers..&lt;BR /&gt;&lt;BR /&gt;i don't know why it is so..but the best way to remove the confusion is, i guess is to fire&lt;BR /&gt;&lt;BR /&gt;# whereis visudo&lt;BR /&gt;visudo: /opt/sudo/sbin/visudo /opt/sudo/man/man1m/visudo.1m&lt;BR /&gt;&lt;BR /&gt;i got this path..and in some servers it is &lt;BR /&gt;&lt;BR /&gt;/usr/local/sbin/visudo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the problem is resolved now..i will close this thread at the end of the day. meanwhile i would definitely like to listen from you all experts something more &amp;amp; interesting, if you have any to inform&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks all...</description>
    <pubDate>Fri, 18 Jul 2008 05:30:38 GMT</pubDate>
    <dc:creator>prasadb</dc:creator>
    <dc:date>2008-07-18T05:30:38Z</dc:date>
    <item>
      <title>problem in sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234812#M329119</link>
      <description>hello experts,&lt;BR /&gt;&lt;BR /&gt;i have a HP-UX machine, B.11.11. i want to give some users the sudo priviledges to root. But its not working..&lt;BR /&gt;&lt;BR /&gt;here is the entry for the ready reference&lt;BR /&gt;&lt;BR /&gt;# User alias specification&lt;BR /&gt;&lt;BR /&gt;User_Alias      SHIFT=shiftopr&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# User privilege specification&lt;BR /&gt;&lt;BR /&gt;SHIFT    PROD=SHELL&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But when i sudo sh by the user shiftopr, then it give this error :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ sudo sh&lt;BR /&gt;Password:&lt;BR /&gt;shiftopr is not in the sudoers file.  This incident will be reported.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;why this error, when i have made the proper entry in /opt/sudo/etc/sudoers/sudoers file&lt;BR /&gt;&lt;BR /&gt;kindly help</description>
      <pubDate>Wed, 16 Jul 2008 10:17:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234812#M329119</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-07-16T10:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234813#M329120</link>
      <description>hi prashad,&lt;BR /&gt;&lt;BR /&gt;i think you should give no_passwd opsion in sudoers file for the user.&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;roy</description>
      <pubDate>Wed, 16 Jul 2008 10:30:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234813#M329120</guid>
      <dc:creator>amipankaj</dc:creator>
      <dc:date>2008-07-16T10:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234814#M329121</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is /opt/sudo/etc/sudoers/sudoers the correct path for the sudoers. May be you have to link as /etc/sudoers.&lt;BR /&gt;&lt;BR /&gt;ln -s /opt/sudo/etc/sudoers/sudoers /etc/sudoers&lt;BR /&gt;Did you use visudo, when you edit the file.&lt;BR /&gt;&lt;BR /&gt;rgds.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jul 2008 11:04:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234814#M329121</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-07-16T11:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234815#M329122</link>
      <description>There is  no command alias in your sudoers file. Type sudo only at the prompt. Do you get anything.&lt;BR /&gt;&lt;BR /&gt;what output sudo -l gives?&lt;BR /&gt;Change /etc/sudoers for testing to&lt;BR /&gt;User_Alias SHIFT=shifto&lt;BR /&gt;SHIFT ALL= /bin/su&lt;BR /&gt;then type at the cmd prompt&lt;BR /&gt;sudo su&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;User_Alias SHIFT=shifto&lt;BR /&gt;SHIFT ALL= /bin/sh&lt;BR /&gt;then type at the cmd prompt&lt;BR /&gt;sudo sh&lt;BR /&gt;&lt;BR /&gt;rgds.</description>
      <pubDate>Wed, 16 Jul 2008 11:41:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234815#M329122</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-07-16T11:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234816#M329123</link>
      <description>From the sample definitions given it cannot be seen what SHELL for instance defines.&lt;BR /&gt;Logged in as user shiftopr you should be able to execute "sudo -l" and be given a list of commands the user is allowed to run through sudo.&lt;BR /&gt;Note, you should never edit the sudoers file directly but use the frontend command visudo exclusively.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jul 2008 11:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234816#M329123</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-07-16T11:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234817#M329124</link>
      <description>what i found is that there are different locations of sudoers file...like&lt;BR /&gt;&lt;BR /&gt;in most of my  servers i found sudoers file at&lt;BR /&gt;&lt;BR /&gt;/opt/sudo/etc/sudoers&lt;BR /&gt;&lt;BR /&gt;whereas in some it was at /usr/local/sbin&lt;BR /&gt;&lt;BR /&gt;and in some it resides at /etc/sudoers..&lt;BR /&gt;&lt;BR /&gt;i don't know why it is so..but the best way to remove the confusion is, i guess is to fire&lt;BR /&gt;&lt;BR /&gt;# whereis visudo&lt;BR /&gt;visudo: /opt/sudo/sbin/visudo /opt/sudo/man/man1m/visudo.1m&lt;BR /&gt;&lt;BR /&gt;i got this path..and in some servers it is &lt;BR /&gt;&lt;BR /&gt;/usr/local/sbin/visudo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the problem is resolved now..i will close this thread at the end of the day. meanwhile i would definitely like to listen from you all experts something more &amp;amp; interesting, if you have any to inform&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks all...</description>
      <pubDate>Fri, 18 Jul 2008 05:30:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234817#M329124</guid>
      <dc:creator>prasadb</dc:creator>
      <dc:date>2008-07-18T05:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: problem in sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234818#M329125</link>
      <description>don't care sudoers place. don't edit via vi.just type visudo.&lt;BR /&gt;&lt;BR /&gt;please not that sudo sh keeps users' environment.&lt;BR /&gt;sudo su - changes environent to root.</description>
      <pubDate>Fri, 18 Jul 2008 05:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-in-sudo/m-p/4234818#M329125</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2008-07-18T05:50:30Z</dc:date>
    </item>
  </channel>
</rss>

