Hi, Ted. 

I try to keep these discussions on the lists, not private. I don't recall
where we encountered each other, though, so I apologize if I've chosen the
wrong list to add back in via the Cc header.

At 01:55 PM 5/30/00 -0300, you wrote:
>
>Ray..
>We talked about this the other day. I just need to know a couple of
>things.
> 
>I can print just fine using 'pr file_name > /dev/lp0'. 
>Away it goes. Just as slick as one would want.
>
>Now, it seems to me that I should be able to print using 'lpr'. Shouldn't
>I?  And if people 'normally' print using that command/file, then why can't
>I do that?
>
>This is what lpr looks like in the /usr/bin directory:
>
>-rwxr-x--x   1 ve1drg   lp          14240 Apr  5  1999 lpr*
>-r-s--s--x   1 root     lp          13184 Apr  5  1999 lprm*

The ownership of lpr is unusual, but since /dev/lp0 is mode 666, that
shouldn't be a problem. It might present a problem accessing the
/var/spool/whatever directories it needs to use. My lpr is owned by root and
has both the suid and sgid bits set.

>And this is what the lp files look like in /dev/:
>
>ve1drg:/dev# ls lp* -al
>crw-rw-rw-   1 ve1drg   daemon     6,   0 Apr 27  1995 lp0
>crw-rw----   1 root     daemon     6,   1 Apr 27  1995 lp1
>crw-rw----   1 root     daemon     6,   2 Apr 27  1995 lp2
>ve1drg:/dev#

Again, the ownership of lp0 is unusual.

>And finally, here is the daemons ,  in /usr/sbin:
>
>ve1drg:/usr/sbin# ls lp* -al
>-r-xr-s--x   1 root     lp          21976 Apr  5  1999 lpc*
>-rwxr--r--   1 ve1drg   lp          41836 Apr  5  1999 lpd*
>-rwxr-xr-x   1 root     lp           4784 Apr  5  1999 lpf*
>-r-x------   1 root     lp           3168 Apr  5  1999 lptest*
>ve1drg:/usr/sbin#
>
>
>>From what I have listed -  is it possible to get the printer to work
>with those files?  Or are the permissions wrong etc..

I'm not sure if they are wrong. I am sure that some of them don't match
mine. I have lpd as mode 755. I don't have an "lptest".

>And this is all I have in my /etc/printcap file for the printer:
>
>#
>lp|Generic dot-matrix printer entry:\
>        :lp=/dev/lp0:\
>        :sd=/var/spool/lp0/lp:sh:\
>        :if=/usr/bin/lpf:\
>        :df=/var/spool/lp0/filter.ps:\
>        :tf=/var/spool/lp0/filter.ps:\
>        :af=/var/spool/lp0/lp-acct:\
>        :lf=/var/spool/lp0/lp-err:
>
>
>Any thoughts would be appreciated..

The main question is: if you try to print, what happens? 

Troubleshooting in response to an error message is a lot easier than reading
through a lot of stuff to see if it is all correct.

Subsidiary questions: What actual printer do you have? What (exactly) is
/usr/bin/lpf? What are the ownership and permissions of /var/spool/lp0 and
/var/spool/lp0/lp ? And BTW, what Linux distribution are we talking about?

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to