Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!joyce!cslb!porthos!aida From: aida@porthos.csl.sri.com (Hitoshi Aida) Newsgroups: comp.unix.wizards Subject: Re: lpr output filters Message-ID: <9712@cslb.CSL.SRI.COM> Date: 12 Apr 89 19:10:55 GMT References: <1158@novavax.UUCP> <8414@xanth.cs.odu.edu> <16878@mimsy.UUCP> Sender: usenet@cslb.CSL.SRI.COM Reply-To: aida@csl.sri.com (Hitoshi Aida) Distribution: usa Organization: Computer Science Lab, SRI International Lines: 19 In article <16878@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >The discussion is really about `files that can be viewed on a terminal >but not printed'. > >It is worth noting that this effort is doomed to failure, as there >are terminals that are printers, or have integral printers. > So, there is no perfect solution, but usually it is sufficient if making hard-copy is difficult enough. How about this: as discussed early, make a special uid that can access the files. Make a set-uid program which looks the termcap and display the content of the file in special manner. For example, use cursor motion to write characters in random order, produce different style of output (e.g. different number of columns in multi-column output) on each page to make the collection of "screen dump" difficult, and so on. Of course it should refuse to show the file if the terminal looks like a printer (i.e. lacks some basic terminal capabilities). -------- Hitoshi AIDA (aida@csl.sri.com) Computer Science Laboratory, SRI International