<?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 entry in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757663#M258803</link>
    <description>You can put following in sudoers file&lt;BR /&gt;&lt;BR /&gt;user ALL=/usr/bin/chown,/usr/bin/chgrp&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 23 Mar 2006 10:54:12 GMT</pubDate>
    <dc:creator>Anthony khan</dc:creator>
    <dc:date>2006-03-23T10:54:12Z</dc:date>
    <item>
      <title>sudo entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757659#M258799</link>
      <description>Does anyone know if this is possible:&lt;BR /&gt;&lt;BR /&gt;Putting in an entry in sudoers file that allow a given user to do chown/chgrp AS ROOT - but restrict other root commands?&lt;BR /&gt;&lt;BR /&gt;Thanks....Mike&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Mar 2006 10:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757659#M258799</guid>
      <dc:creator>Michael Murphy_2</dc:creator>
      <dc:date>2006-03-23T10:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: sudo entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757660#M258800</link>
      <description>just add a line to the end of the sudoers file like this...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;myuser   ALL = /usr/bin/chown *, /usr/bin/chgrp *</description>
      <pubDate>Thu, 23 Mar 2006 10:50:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757660#M258800</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2006-03-23T10:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: sudo entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757661#M258801</link>
      <description>Yes, it's certainly possible although, that particular command should be granted with care.&lt;BR /&gt;&lt;BR /&gt;${user} ALL=(ALL) /bin/chown, /bin/chgrp &lt;BR /&gt;&lt;BR /&gt;in the sudoers will do exactly what you're looking for.  Realize that gives the user the ability to chown *any* file on the system. If you give them chmod as well, you've just given them the system:&lt;BR /&gt;&lt;BR /&gt;cp /bin/ksh /tmp/.my_root_hack&lt;BR /&gt;sudo /bin/chown root:sys /tmmp/.my_root_hack&lt;BR /&gt;sudo /bin/chmod 4755 /tmp/.my_root_hack&lt;BR /&gt;&lt;BR /&gt;will give the user a root owned suid ksh.  &lt;BR /&gt;&lt;BR /&gt;sudo is a great command; however, you need to be careful with it...&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Thu, 23 Mar 2006 10:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757661#M258801</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2006-03-23T10:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: sudo entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757662#M258802</link>
      <description>quick addendum; those commands are in /usr/bin; didn't realize I was on a linux box when I looked for their location...&lt;BR /&gt;&lt;BR /&gt;Sorry  for the confusion.&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Thu, 23 Mar 2006 10:52:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757662#M258802</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2006-03-23T10:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: sudo entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757663#M258803</link>
      <description>You can put following in sudoers file&lt;BR /&gt;&lt;BR /&gt;user ALL=/usr/bin/chown,/usr/bin/chgrp&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Mar 2006 10:54:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757663#M258803</guid>
      <dc:creator>Anthony khan</dc:creator>
      <dc:date>2006-03-23T10:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: sudo entry</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757664#M258804</link>
      <description>Yes, it is possible.&lt;BR /&gt;&lt;BR /&gt;sudoer's excerpt&lt;BR /&gt;&lt;BR /&gt;User_Alias  SPECIAL = tom,dick,harry&lt;BR /&gt;&lt;BR /&gt;Runas_Alias   RT = root&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias  CHOWN = /usr/bin/chown&lt;BR /&gt;Cmnd_Alias  CHGRP = /usr/bin/chgrp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SPECIAL ALL = (RT) CHOWN, CHGRP&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This would allow users tom, dick, and harry to run chown and chgrp as root.&lt;BR /&gt;&lt;BR /&gt;Note that there is a danger to this because you have also allowed these users to create setuid root programs w/o explicitly granting that ability -- so be careful what you ask for.</description>
      <pubDate>Thu, 23 Mar 2006 11:07:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-entry/m-p/3757664#M258804</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-23T11:07:55Z</dc:date>
    </item>
  </channel>
</rss>

