<?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 set up question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-set-up-question/m-p/2462611#M14690</link>
    <description>Pretty much ditto, sudo will allow you to execute certain commands as root but the excution of the command will not follow additional conditions, in this situation, the rm of files in a certain directory. As root, you can do the rm command anywhere you want.&lt;BR /&gt;&lt;BR /&gt;You can setup a script (wrapper) that only sudo (root) can execute and in that script it will remove the specified files.</description>
    <pubDate>Tue, 07 Nov 2000 20:21:39 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2000-11-07T20:21:39Z</dc:date>
    <item>
      <title>Sudo set up question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-set-up-question/m-p/2462609#M14688</link>
      <description>--------------------------------------------------------------------------------&lt;BR /&gt;I am trying to set up sudo to allow some users to only have rm capabilties in /var/spool/lp/request directory, and every printer under-neath. Sam or restricted sam only allows you to select 1 request at a time. I like the way sudo runs so far but this would GREATLY help out. I already tried tweaking the sudoer file with the following line but it doesnt work. I would imagine I am close but no cigar as of yet. &lt;BR /&gt;OPS PROD=PASSWD:/usr/bin/rm /var/spool/lp/request/ &lt;BR /&gt;&lt;BR /&gt;Thanks in advance...</description>
      <pubDate>Tue, 07 Nov 2000 19:50:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-set-up-question/m-p/2462609#M14688</guid>
      <dc:creator>Eric Kaiser</dc:creator>
      <dc:date>2000-11-07T19:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo set up question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-set-up-question/m-p/2462610#M14689</link>
      <description>I know of no way to configure sudo to allow access ot a command only if the flag passed to the command meets a certain criteria (in the desired directory, in your case).&lt;BR /&gt;&lt;BR /&gt;You might want to simply write a wrapper that colects any number of arguments, checks to make sure no paths are absolute, then does a cd to the directory and passes the argument to rm.  Give sudo permissions ot that wrapper, and you are done.</description>
      <pubDate>Tue, 07 Nov 2000 20:13:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-set-up-question/m-p/2462610#M14689</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-11-07T20:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo set up question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-set-up-question/m-p/2462611#M14690</link>
      <description>Pretty much ditto, sudo will allow you to execute certain commands as root but the excution of the command will not follow additional conditions, in this situation, the rm of files in a certain directory. As root, you can do the rm command anywhere you want.&lt;BR /&gt;&lt;BR /&gt;You can setup a script (wrapper) that only sudo (root) can execute and in that script it will remove the specified files.</description>
      <pubDate>Tue, 07 Nov 2000 20:21:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-set-up-question/m-p/2462611#M14690</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-11-07T20:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo set up question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-set-up-question/m-p/2462612#M14691</link>
      <description>I would give them sudo access to&lt;BR /&gt;&lt;BR /&gt;/usr/bin/{cancel,enable,disable}, and&lt;BR /&gt;/usr/sbin/{accept,reject}&lt;BR /&gt;&lt;BR /&gt;rather than /usr/bin/rm.</description>
      <pubDate>Tue, 07 Nov 2000 22:19:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-set-up-question/m-p/2462612#M14691</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2000-11-07T22:19:56Z</dc:date>
    </item>
  </channel>
</rss>

