Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!wb3ffv!ka3ovk!raysnec!shwake From: shwake@raysnec.UUCP (Ray Shwake) Newsgroups: comp.unix.xenix Subject: Re: printers Summary: user "lp" must be able to access the file Keywords: printers permissions directories Message-ID: <54@raysnec.UUCP> Date: 6 Jun 90 17:22:39 GMT References: <2066@polari.UUCP> Reply-To: shwake@raysnec.UUCP (Ray Shwake) Distribution: na Organization: IRS - ACI Project Office Lines: 11 In article <2066@polari.UUCP> corwin@polari.UUCP (Don Glover) writes: >I am using Xenix 386 2.3.2 and have just made a default printer named >of all things printer, when I go and print a file by typing lp filename >I get a banner page and the message (printed): >cat: cannot open /u/corwin/misc/temp/rnd1.c Since lp is running setuid to "lp", user "lp" must be able to access the file in question. In particular, it must have access permission through to the directory location, and read access to the file. However, if you were to type "lp < filename", you would take advantage of the shell's access to that file, and lp should complain no more.