<?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: How to set rights for printers in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058612#M575124</link>
    <description>I have added these script to my file Lex1275 in /etc/lp/interface directory:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# Which group do you belong to?&lt;BR /&gt;ID=$(id -gn)&lt;BR /&gt;case $ID in&lt;BR /&gt;iff_stud) echo "Permission denied"&lt;BR /&gt;exit 1;;&lt;BR /&gt;*) echo "Access granted" ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;I have tested the file in another file but it dosn??t work ?</description>
    <pubDate>Fri, 29 Aug 2003 07:35:27 GMT</pubDate>
    <dc:creator>Rene_17</dc:creator>
    <dc:date>2003-08-29T07:35:27Z</dc:date>
    <item>
      <title>How to set rights for printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058608#M575120</link>
      <description>Hi !&lt;BR /&gt;How can I set rights for printers ?&lt;BR /&gt;&lt;BR /&gt;- one group of local users should access the local printer&lt;BR /&gt;- one group of local users shoudn??t access the local printer&lt;BR /&gt;&lt;BR /&gt;Please help me !</description>
      <pubDate>Thu, 28 Aug 2003 08:01:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058608#M575120</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-08-28T08:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to set rights for printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058609#M575121</link>
      <description>There is nothing in the spooler system to limit access to a particular printer. You will have to add code into each printer's script to reject users that do not have rights to the printer. The userID for each job is the $1 parameter.</description>
      <pubDate>Thu, 28 Aug 2003 10:49:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058609#M575121</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-08-28T10:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to set rights for printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058610#M575122</link>
      <description>Yeah, if they print from unix, you would have to write your own "wrapper" script to intercept the lp command.  Probably put the users in 2 different groups then have a case statement to decide if they are allowed to print or not.&lt;BR /&gt;&lt;BR /&gt;But once they figure out that lp is wrapped, then all they need to do is more the script to find out how to by pass it...&lt;BR /&gt;&lt;BR /&gt;If it's from an application - then you have more control....and use the same wrapper script... &lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Thu, 28 Aug 2003 11:27:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058610#M575122</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2003-08-28T11:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to set rights for printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058611#M575123</link>
      <description>Just an idea: an lp interface it's only a shell script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Adding up this and Bill hint: write  some lines in the lp interface script.&lt;BR /&gt;&lt;BR /&gt;If the uid belongs to group a, then print normally&lt;BR /&gt;If the iud belongs to group b, then do nothing.&lt;BR /&gt;&lt;BR /&gt;Simple, no ?&lt;BR /&gt;&lt;BR /&gt;    Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Aug 2003 11:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058611#M575123</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-08-28T11:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set rights for printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058612#M575124</link>
      <description>I have added these script to my file Lex1275 in /etc/lp/interface directory:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# Which group do you belong to?&lt;BR /&gt;ID=$(id -gn)&lt;BR /&gt;case $ID in&lt;BR /&gt;iff_stud) echo "Permission denied"&lt;BR /&gt;exit 1;;&lt;BR /&gt;*) echo "Access granted" ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;I have tested the file in another file but it dosn??t work ?</description>
      <pubDate>Fri, 29 Aug 2003 07:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058612#M575124</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-08-29T07:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to set rights for printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058613#M575125</link>
      <description>Hi,&lt;BR /&gt;following is an example of parameters sent by lp to the printer:&lt;BR /&gt;&lt;BR /&gt;filetest2-1908 orat01 1 /var/spool/lp/request/filetest2/dA1908itsap04&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;second column is the owner: orat01.&lt;BR /&gt;&lt;BR /&gt;You can chacnge your check from UID to the string and match/not match the users you do not want to print.&lt;BR /&gt;&lt;BR /&gt;$2 is the key, not $3 !!&lt;BR /&gt;&lt;BR /&gt;   Massimo</description>
      <pubDate>Fri, 29 Aug 2003 08:13:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058613#M575125</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-08-29T08:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to set rights for printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058614#M575126</link>
      <description>the question is what script should i use to add the lines ?:&lt;BR /&gt;&lt;BR /&gt;/etc/lp/interface/Lex1275 ?&lt;BR /&gt;/var/spool/lp/request/* ?&lt;BR /&gt;/etc/lp/member/... ?&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Aug 2003 08:24:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058614#M575126</guid>
      <dc:creator>Rene_17</dc:creator>
      <dc:date>2003-08-29T08:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to set rights for printers</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058615#M575127</link>
      <description>in &lt;BR /&gt;&lt;BR /&gt;/etc/lp/interface/Lex1275&lt;BR /&gt;&lt;BR /&gt;assuming that Lex1275 is the driver.&lt;BR /&gt;&lt;BR /&gt;I paste my dummy file, i sued to extract that infos.&lt;BR /&gt;&lt;BR /&gt;This is my filetest2 dummy printer, in /etc/lp/interface/filetest2&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;PATH="/usr/bin:/usr/lib"&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;copies=$4&lt;BR /&gt;&lt;BR /&gt;echo $* &amp;gt; /tmp/massimo.info&lt;BR /&gt;echo $1 $2 $3 $4 $5 $6 $7 $8 $9 &amp;gt;&amp;gt; /tmp/massimo.info&lt;BR /&gt;&lt;BR /&gt;shift; shift; shift; shift; shift&lt;BR /&gt;files="$*"&lt;BR /&gt;&lt;BR /&gt;i=1&lt;BR /&gt;while [ $i -le $copies ]&lt;BR /&gt;do&lt;BR /&gt;        for file in $files&lt;BR /&gt;        do&lt;BR /&gt;                cat "$file" 2&amp;gt;&amp;amp;1&lt;BR /&gt;                echo "\012\c"&lt;BR /&gt;        done&lt;BR /&gt;        i=`expr $i + 1`&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Massimo</description>
      <pubDate>Fri, 29 Aug 2003 08:32:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-rights-for-printers/m-p/3058615#M575127</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-08-29T08:32:29Z</dc:date>
    </item>
  </channel>
</rss>

