Re: remote printer problem - summary

From: Ronny Eliahu, ISS x5382 <RONNY_at_CSMC.EDU>
Date: Mon, 10 Apr 1995 12:22:53 -0800 (PST)

Summary:

I would like to thank all of you who replied to my question and I was able to
solve the remote printer problem.
I was getting the following message (extract from my original message).

>lpr -Prx1 myfile
>lpr: cannot create /usr/spool/lpd6/.seq
>The entry in printcap looks like this on both systems.
>lp6|6|rx1:\

Below are the replies I received (all were great help!).
-----------------------------------------------------------------------------
From: IN%"jwright_at_phy.ucsf.edu" "Jim Wright"

this might help...

% ls -l /usr/spool/lw6/
total 5
drwxr-xr-x 2 daemon daemon 512 Apr 7 13:17 ./
drwxr-xr-x 22 root system 512 Feb 27 20:14 ../
-rw-r----x 1 root daemon 4 Apr 7 13:17 .seq*
-rw-r--r-- 1 root daemon 29 Apr 7 13:17 lock
-rw-r--r-- 1 daemon daemon 0 Mar 1 13:56 lw6-err
-rw-rw-r-- 1 root daemon 27 Apr 7 13:17 status

% ps auxww | grep lpd
root 633 0.0 0.4 1.41M 232K ?? I Mar 21 0:00.22 /usr/lbin/lpd

% ls -l /usr/lbin/lpd
-rws--x--x 1 root bin 98304 Feb 21 1994 /usr/lbin/lpd*
---------------------------------------------------------------------------
From: IN%"aad_at_statsci.com" "Anthony D'Atri" 8-APR-1995 13:11:53.66

lpr should be setuid root. Chances are that either you lost the setuid bit
or it's not owned by root or you've got /usr/spool/whatever across an NFS
mount.
---------------------------------------------------------------------------
From: IN%"Knut.Hellebo_at_nho.hydro.com" DAMN GOOD COFFEE !!
                                                   (and hot too)
Hi ! /
                                                ofcourse!
/usr is a readonly
---------------------------------------------------------------------------
From: IN%"ram_at_intercap.com"

Hi:

This is in reply to your remote printer problem.
Did the setuid bit on lpr change?

ls -l /usr/ucb/lpr

-rws--x--x 1 root bin 49152 Aug 8 1994 /usr/ucb/lpr
          
## chmod 4711 /usr/ucb/lpr
---------------------------------------------------------------------------
Received on Mon Apr 10 1995 - 15:23:43 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT