<?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 with limited permission in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-with-limited-permission/m-p/3694791#M247953</link>
    <description>Does all users belong to one single group?&lt;BR /&gt;then,&lt;BR /&gt;cmnd_alias lp_commands=/usr/sbin/lpfence, lpshut, xxyc, ereette&lt;BR /&gt;%group_name ALL=lp_commands &lt;BR /&gt;&lt;BR /&gt;This would give all users in group_name access to all commands that you specify for alis lp_commands.</description>
    <pubDate>Tue, 20 Dec 2005 05:42:41 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2005-12-20T05:42:41Z</dc:date>
    <item>
      <title>sudo with limited permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-with-limited-permission/m-p/3694790#M247952</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Would like to have your advices on sudo issue.&lt;BR /&gt;how can i assign full control of a printer for a user or group of users by using sudo.&lt;BR /&gt;if i assign command lpfence using sudo for a user. Is there a way to only allow him to control only his printers. lpfence involves with shuting down  the spooler (lpshut).&lt;BR /&gt;Please advice!&lt;BR /&gt;Regards,&lt;BR /&gt;Tom&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Dec 2005 05:29:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-with-limited-permission/m-p/3694790#M247952</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2005-12-20T05:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: sudo with limited permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-with-limited-permission/m-p/3694791#M247953</link>
      <description>Does all users belong to one single group?&lt;BR /&gt;then,&lt;BR /&gt;cmnd_alias lp_commands=/usr/sbin/lpfence, lpshut, xxyc, ereette&lt;BR /&gt;%group_name ALL=lp_commands &lt;BR /&gt;&lt;BR /&gt;This would give all users in group_name access to all commands that you specify for alis lp_commands.</description>
      <pubDate>Tue, 20 Dec 2005 05:42:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-with-limited-permission/m-p/3694791#M247953</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-12-20T05:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: sudo with limited permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-with-limited-permission/m-p/3694792#M247954</link>
      <description>Bit tedious, but you can define the command for each user, and add to the command the argument for the printer. That is, instead of defining a alias for the printer commands and assigning it to a group, you have to define 1 line per user &amp;amp; printer :&lt;BR /&gt;&lt;BR /&gt;jcouto  ALL = (root) /usr/sbin/lpfence coutoprinter&lt;BR /&gt;&lt;BR /&gt;now I could call sudo /usr/sbin/lpfence coutprinter 10 BUT sudo would not let me do the lpfence for any other printer.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Dec 2005 06:25:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-with-limited-permission/m-p/3694792#M247954</guid>
      <dc:creator>Jesús Couto Fandiño</dc:creator>
      <dc:date>2005-12-20T06:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: sudo with limited permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-with-limited-permission/m-p/3694793#M247955</link>
      <description>The lp user has permission to run the lp commands but I suspect that you don't want the helpers to use *every* lp command. In the sudoers file, you can enumerate each of the allowed commands. The usual commands would be lpadmin (but you may need to limit the options in case a helper accidently deletes a printer), cancel, accept, reject. The good news is that you only need to create the sudo user once with all the needed commands.</description>
      <pubDate>Tue, 20 Dec 2005 08:53:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-with-limited-permission/m-p/3694793#M247955</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-12-20T08:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: sudo with limited permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-with-limited-permission/m-p/3694794#M247956</link>
      <description>Thanks- Rac, Jesu', Bill for your help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this line in my sudoers file works fine&lt;BR /&gt;tom  ALL = NOPASSWD:/usr/bin/cancel&lt;BR /&gt;but if i added a printer name "printer1" at the end, sudo will prompt for a password.&lt;BR /&gt;tom  ALL = NOPASSWD:/usr/bin/cancel printer1&lt;BR /&gt;or even i used command from jesu'&lt;BR /&gt;tom  ALL = (root)/usr/bin/cancel printer1&lt;BR /&gt;&lt;BR /&gt;it still asks for a password.&lt;BR /&gt;&lt;BR /&gt;is there a way for sudo to assign certain permission for certain user to take of certain task.&lt;BR /&gt;ex:cancel command to allow users to canccel only printers assign to him in sudoers file or assign kill command and only allow him to kill processes in his group.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tom&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 24 Dec 2005 07:12:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-with-limited-permission/m-p/3694794#M247956</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2005-12-24T07:12:48Z</dc:date>
    </item>
  </channel>
</rss>

