anselm
thanks for yr email . i have all ldap users u can do a favour to give me 
that script


>From: Anselm Martin Hoffmeister <[EMAIL PROTECTED]>
>To: Noman yousuf <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED], [EMAIL PROTECTED], 
>ltsp-discuss@lists.sourceforge.net
>Subject: Re: [Ltsp-discuss] CUPS restrictions by location of terminals?
>Date: Tue, 05 Sep 2006 12:00:33 +0200
>
>Am Dienstag, den 05.09.2006, 04:54 +0000 schrieb Noman yousuf:
> > hai i also want to do this
> > i have 50 users and 5 depts . i want that every dept user can only print
> > from its dept printer not from other depts printer . no need to hide
> > printers i just named them as dept name any idea waht i do
>
>I implemented some manual printing restriction script for CUPS, back in
>2004. I think it centered around the CUPS internal file
>"/usr/bin/cupsdoprint", and IIRC that program is called with ANY
>printjob to be printed, and with command line parameters telling which
>printer is meant to be used, and the username also available.
>
>What I did (still - if I remember correctly - my memory is not much
>better than 1MB SIM chips nowadays ;-/) was to move that program
>to /usr/local/bin/cupsdoprint.real, and write a bash script to find out
>which parameters you get with cupsdoprint. IIRC, "-P printername" and
>"-U username" were the interesting ones.
>
>Then, with a little bit of bash if'ing and so on, you can simply discard
>printjobs that ought not to be printed by exiting the script without
>further action, or pipe stdin through the cupsdoprint.real with the same
>command line to actually print the data.
>
>You could also have a "magic" printer that is default for all users.
>Let's say it has the name "next2u". Now when this printer is requested,
>you have a little script logic that looks up which display the user is
>logged in from, and then use a table or text config to find out which
>printer is nearest to that terminal. This way, all users can simply
>print to "next2u", but if there is real need to print to a remote
>printer, it is possible by selecting the appropriate machine: It might
>be reasonable to print to the printer in the next room while the one in
>front of you runs on a 400 page duplex full-colour por^H^H^H manual.
>
>You could even implement logic to allow the free choice of printers to a
>certain group of users only, and restrict the others to doing
>next2u-printing.
>
>HTH
>Anselm
>



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to