<?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 user unable to execute in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-user-unable-to-execute/m-p/4495528#M364173</link>
    <description>Hi All :&lt;BR /&gt;&lt;BR /&gt;I am getting the following for a sudo user :&lt;BR /&gt;&lt;BR /&gt;"Sorry, user richard is not allowed to execute '/usr/bin/kill -hup 15284' as root on pwpsp."&lt;BR /&gt;&lt;BR /&gt;The sudoers file is set as :&lt;BR /&gt;&lt;BR /&gt;richard  ALL=/apps/dlc101b/bin/proshut, /usr/bin/kill&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Ramamurthy Dasari&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 10 Sep 2009 19:27:58 GMT</pubDate>
    <dc:creator>rdasari</dc:creator>
    <dc:date>2009-09-10T19:27:58Z</dc:date>
    <item>
      <title>sudo user unable to execute</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-user-unable-to-execute/m-p/4495528#M364173</link>
      <description>Hi All :&lt;BR /&gt;&lt;BR /&gt;I am getting the following for a sudo user :&lt;BR /&gt;&lt;BR /&gt;"Sorry, user richard is not allowed to execute '/usr/bin/kill -hup 15284' as root on pwpsp."&lt;BR /&gt;&lt;BR /&gt;The sudoers file is set as :&lt;BR /&gt;&lt;BR /&gt;richard  ALL=/apps/dlc101b/bin/proshut, /usr/bin/kill&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Ramamurthy Dasari&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Sep 2009 19:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-user-unable-to-execute/m-p/4495528#M364173</guid>
      <dc:creator>rdasari</dc:creator>
      <dc:date>2009-09-10T19:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: sudo user unable to execute</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-user-unable-to-execute/m-p/4495529#M364174</link>
      <description>Probably a syntax error. That entry doesn't look right to me. Did you use visudo to edit the sudoers file? It'll catch syntax errors nicely. Try:&lt;BR /&gt;&lt;BR /&gt;richard ALL=(root) /apps/dlc101b/bin/proshut, /usr/bin/kill&lt;BR /&gt;&lt;BR /&gt;Of course, giving someone blanket kill privileges like this is pretty dangerous stuff.</description>
      <pubDate>Thu, 10 Sep 2009 19:33:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-user-unable-to-execute/m-p/4495529#M364174</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2009-09-10T19:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: sudo user unable to execute</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-user-unable-to-execute/m-p/4495530#M364175</link>
      <description>Jeff :&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick response.  The syntax was correct as posted.  I had even tried the way you stated but still getting the same error.  &lt;BR /&gt;&lt;BR /&gt;Also what do you mean by blanket kill priviledges.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;&lt;BR /&gt;Ramamurthy Dasari</description>
      <pubDate>Thu, 10 Sep 2009 19:41:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-user-unable-to-execute/m-p/4495530#M364175</guid>
      <dc:creator>rdasari</dc:creator>
      <dc:date>2009-09-10T19:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: sudo user unable to execute</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-user-unable-to-execute/m-p/4495531#M364176</link>
      <description>I seem to recall having some issues having multiple commands directly in the line like that. Maybe my mind playing tricks on me. I always use aliases in sudoers. Keeps things more organized for complex configurations and avoids the problem. Might try something like this and see if you have better luck:&lt;BR /&gt;&lt;BR /&gt;User_Alias SOMEGUY = richard&lt;BR /&gt;Cmnd_Alias SOMEGUY_CMNDS = /apps/dlc101b/bin/proshut, /usr/bin/kill&lt;BR /&gt;&lt;BR /&gt;SOMEGUY ALL=(root) SOMEGUY_CMNDS&lt;BR /&gt;&lt;BR /&gt;(You can name the aliases whatever you like.)&lt;BR /&gt;&lt;BR /&gt;As for the danger of giving someone open access to the kill command this way... with no restriction on what they can kill, there's nothing to stop him from killing any process on the system... any OS process, database, application, etc. One typo or malicious execution and the system/database/application could come down in a very unpleasant manner. If there are only certain processes the user should really have a need to kill as root, I'd create a wrapper script to be sure those processes are the only ones they could kill. If all of the processes are owned by a particular non-root user, you could also safeguard the system somewhat better by putting that user in the config instead of root, like this:&lt;BR /&gt;&lt;BR /&gt;Runas_Alias OTHERUSER = somename&lt;BR /&gt;SOMEGUY ALL=(OTHERUSER) /usr/bin/kill&lt;BR /&gt;&lt;BR /&gt;Also, be concerned about file and directory permissions for commands you grant access to, especially ones allowed to run as root. The person shouldn't be able to change /apps/dlc101b/bin/proshut by having write permission to it or the directory /apps/dlc101b/bin if they are allowed to run the command as root. That's another avenue for them to do whatever they want to do on the system.</description>
      <pubDate>Thu, 10 Sep 2009 20:09:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-user-unable-to-execute/m-p/4495531#M364176</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2009-09-10T20:09:54Z</dc:date>
    </item>
  </channel>
</rss>

