<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309693#M628101</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Still I could not solve the problem with sudo.  I need help. There is attachment file for review.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
    <pubDate>Sat, 19 Jun 2004 01:04:21 GMT</pubDate>
    <dc:creator>Mehmood Ansari</dc:creator>
    <dc:date>2004-06-19T01:04:21Z</dc:date>
    <item>
      <title>Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309693#M628101</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Still I could not solve the problem with sudo.  I need help. There is attachment file for review.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Jun 2004 01:04:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309693#M628101</guid>
      <dc:creator>Mehmood Ansari</dc:creator>
      <dc:date>2004-06-19T01:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309694#M628102</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;Can you please explain your problem? I do not see any posts before this message about your problem.</description>
      <pubDate>Sat, 19 Jun 2004 21:10:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309694#M628102</guid>
      <dc:creator>Mohanasundaram_1</dc:creator>
      <dc:date>2004-06-19T21:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309695#M628103</link>
      <description>Hi Mohammad,&lt;BR /&gt;&lt;BR /&gt;The error says that you are trying to execute sudo as root. Since root is not defined in your sudoers file (unless you make root as part of cmsoper group or add root to your User_Alias), it gave you the error. Why would you use sudo for root anyway?.&lt;BR /&gt;&lt;BR /&gt;To make it simple, add these lines to your sudoers and see if they work for you. &lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias MYCMDS = /usr/sbin/fbackup, /usr/sbin/frecover, /usr/sbin/shutdown&lt;BR /&gt;&lt;BR /&gt;%cmsoper ALL = (root) NOPASSWD: MYCMDS&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Sun, 20 Jun 2004 00:22:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309695#M628103</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-06-20T00:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309696#M628104</link>
      <description>Hi Sridhar&lt;BR /&gt;&lt;BR /&gt;I did changes as you mentioned.  When I run sudo it says that&lt;BR /&gt;&lt;BR /&gt;[cmsprod,cmsoper,ORCL,/]&amp;gt;/usr/local/bin/sudo shutdown&lt;BR /&gt;User root not allowed to shutdown this system (cmsprod) -- exiting shutdown.&lt;BR /&gt;[cmsprod,cmsoper,ORCL,/]&amp;gt;&lt;BR /&gt;[cmsprod,cmsoper,ORCL,/]&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Please check the attachment file.&lt;BR /&gt;Regards</description>
      <pubDate>Sun, 20 Jun 2004 04:56:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309696#M628104</guid>
      <dc:creator>Mehmood Ansari</dc:creator>
      <dc:date>2004-06-20T04:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309697#M628105</link>
      <description>Hi Mohammad,&lt;BR /&gt;&lt;BR /&gt;Looks like you configured /etc/shutdown.allow and didn't add root in it. That file if exists and non-empty, should also have root included if you want to shutdown the system as root.&lt;BR /&gt;&lt;BR /&gt;Either delete that file or add root to it. This is not a problem with sudo.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Sun, 20 Jun 2004 13:07:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309697#M628105</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-06-20T13:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309698#M628106</link>
      <description>What does it says in the "/etc/shutdown.allow" file?&lt;BR /&gt;</description>
      <pubDate>Sun, 20 Jun 2004 16:37:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309698#M628106</guid>
      <dc:creator>Andrew Cowan</dc:creator>
      <dc:date>2004-06-20T16:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309699#M628107</link>
      <description>Hi Srighar&lt;BR /&gt;&lt;BR /&gt;I did run before removing /etc/shutdown.allow and after removing /etc/shutdown.allow.  Please check attachment file.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards</description>
      <pubDate>Sun, 20 Jun 2004 23:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309699#M628107</guid>
      <dc:creator>Mehmood Ansari</dc:creator>
      <dc:date>2004-06-20T23:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309700#M628108</link>
      <description>With the shutdown.allow file in place, the error seems to indicate that your current login is already root or that cmsoper has a UID of 0. sudo should not be used except with ordinary users. Login as cmsoper and run the command: id&lt;BR /&gt; &lt;BR /&gt;There may also be a special character in the shutdown.allow file. List the file with the command:&lt;BR /&gt; &lt;BR /&gt;xd -xc /etc/shutdown.allow&lt;BR /&gt; &lt;BR /&gt;With the second message, you must cd to a root directory (such as /home, not /home/cmsoper or the / directory) before issuing the shutdown command.</description>
      <pubDate>Mon, 21 Jun 2004 00:37:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309700#M628108</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-06-21T00:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309701#M628109</link>
      <description>OK. You are almost there. Removing (renaming) shutdown.allow worked for you as the message now you are getting is different. You cannot shutdown the system from any mounted system other than root's. So, do a 'cd /' before you issue the sudo command.&lt;BR /&gt;&lt;BR /&gt;On the other hand, if the idea is to only allow users to shutdown,fbackup and frecover you can use "restricted sam" feature. Run "sam -r" as root and enable *only* the tools that you want the others to execute.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 21 Jun 2004 09:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309701#M628109</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-06-21T09:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309702#M628110</link>
      <description>Hi Sridhar&lt;BR /&gt; Thanks with cd / before sudo it is working fine.  First I started with sam -r I faced problem, than expert people like you in this forum suggest me to use sudo. Well shutdown reboot is working.  I did try sam -r the problem is I could not exit the sam.  What is hapenning is within the operator menu it is calling sam -r menu, which has two custom application say [fbackup/frecover].  I run fbackup it works fine without error. After complete the fbackup it is backup to sam menu, when I try to exit sam it is running fbackup again with some files error. It finished normal and exit from sam.&lt;BR /&gt;&lt;BR /&gt;What I understand first when I run fbackup it running through sam -r , when I try to exit sam it is running again, which is running from /home/cmsoper with some files error.  Could you tell me where I am making error.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 23 Jun 2004 00:32:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3309702#M628110</guid>
      <dc:creator>Mehmood Ansari</dc:creator>
      <dc:date>2004-06-23T00:32:57Z</dc:date>
    </item>
  </channel>
</rss>

