Remember that root on a remote system maps into nobody for nfs...
The default behavior of the lp subsystem is to link the file
into the print queue; the print spooler then reads the link.
However, if you've disabled world read on the file and you're
printing a remote file, the spooler running as root won't be
able to read your file.... thus you'll find the -c option to lp useful;
this copies the file as you before printing...
- Bart
pomoxp@voila.fr (pomoxp) wrote in message news:<6a545edc.0405030806.43f2be97@posting.google. com>...
> ML Starkey <martha.starkey@sun.com> wrote in message news:<c6u6ka$e11$1@news1nwk.SFbay.Sun.COM>...
> > pomoxp wrote:
> > > Hello
> > >
> > > I can not print over /net path files.
> > > Why ?
> > > My config:
> > > - machine1 contain a file /export/home/dir1/dir2/toto.ps
> > > machine1 : solaris 8
> > > /etc/auto_master contain
> > > /net -hosts -nosuid,nobrowse
> > >
> > > - machine2 : solaris 9
> > > /etc/auto_master contain
> > > /net -hosts -nosuid,nobrowse
> > >
> > > - printer is a network printer
> > >
> > >
> > > From machine2, I try to execute
> > > lp -d printer /net/machine1/export/home/dir1/dir2/toto.ps
> > >
> > >
> > > nothing is printed.
> > >
> > > Why ?
> >
> > Need more data.
> >
> > How is the printer configured? lpstat -lp printername will tell you.
> >
> > Are you able to print a file that is local to machine2, like /etc/hosts
> > or /etc/motd?
> >
> > I see you are printing a postscript file. Is the printer postscript
> > capable? (real postscript capable, not one of these cheesy "PS
> > emulations" that some of the HP models use.)
> >
> > Is there an entry for your failed print job in the /etc/lp/logs/requests
> > log?
>
> I have more information to identify my problem :
>
> #lpstat -lp psw
> printer psw is idle. enabled since May 03 17:57 2004. available.
> Remote Name: psw
> Remote Server: seslp2
>
> My printer is postscript capable (HP LaserJet 4000N)
>
> In fact I am not able to print in this configuration :
> On <machine2> (solaris 8) there is a postscript file
> -rw-r----- /export/home1/PS/test.ps
>
> When from machine1 (Solaris 8)
> I try to execute : lp -d psw /net/machine2/export/home1/PS/test.ps
> I get
> Message from root on <machine1> (???) [ Mon May 3 17:59:48 ]
> ...
>
> Error transfering print job 307
> unable to read job data.
> <EOT>
>
> When from machine3 (solaris 8)
> I try the same as above it works !
>
> If I modify right of the file by -rw-r--r-- then it works on all
> machines.
>
> So there is a permission or security issue that I can not find.
> <machine2> and <machine3> are Solaris 8 but not at the same patch
> level, but they are configured as identical.
> And I have the same problem with a solaris 9 machine : it can print if
> the file is not in 0644 mode.
>
>
> Help will be hopefull
> Pascal