Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!elroy!orion.cf.uci.edu!uci-ics!ucla-cs!heather From: heather@maui.cs.ucla.edu (Heather Burris) Newsgroups: comp.unix.wizards Subject: Re: lpr output filters Message-ID: <22858@shemp.CS.UCLA.EDU> Date: 11 Apr 89 21:11:25 GMT References: <1158@novavax.UUCP> <48300020@hcx3> <1159@novavax.UUCP> Sender: news@CS.UCLA.EDU Reply-To: heather@cs.ucla.edu (Heather Burris) Organization: UCLA Computer Science Department Lines: 21 In article <1159@novavax.UUCP> gls@novavax.UUCP (Gary Schaps) writes: >I would like to "protect" certain files by making them "view only". I can understand why you would want to do that, because I have had occasion to make documents available to students on computer for viewing but restricted from printing either because of copyright problems or, more likely, paper restrictions. The easiest way I know to do it is allocate a userid to own the documents (e.g. userid 'document') and to front-end access to the files with setuid 'document' programs that would allow the access you want. Therefore you could provide a script that would allow one to simply list, view and search the documents and nothing else. You have to be careful, though, with standard UNIX programs like 'more' which might allow a user to slip into vi and then save the output to another file which could then be printed. There is no standard protection mode within the UNIX filesystem that would do what you want, however. 'Read' access allows reading for any purpose, including printing. Heather Burris, UCLA