corwin@polari.UUCP (Don Glover) (06/04/90)
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 <cr> I get a banner page and the message (printed): cat: cannot open /u/corwin/misc/temp/rnd1.c if I go in with root and try and print, lp claims (on the screen) that it cannot read the directory. Can someone give me a clue as to what I have done wrong?
brad@bradf.UUCP (Bradley W. Fisher) (06/06/90)
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 > [...deleted...] > if I go in with root and try and print, lp claims (on the screen) that it > cannot read the directory. Sounds like one of your directories leading down to the file doesn't have execute permission for "others" ... maybe "temp"? The lp spooler needs to have it ... it's setuid(bin) I beleive. Try "chmod o+x" when you see the offender. ;-) -- I'm just a wanna be UNIX guru (IJWBUG) | Micro Maintenance, Inc. | 2465 W. 12th St. #6 -== Brad Fisher ==- | Tempe, Arizona 85281 ...!asuvax!mcdphx!hrc!microm!bradf!brad | 602/894-5526
shwake@raysnec.UUCP (Ray Shwake) (06/07/90)
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 <cr> >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.