I assume this is Slackware 7, kernel 2.2.16pre4.

Probably the message means what it sounds like: that pine doesn't have
permission to write to /dev/lp0 . I don't have a Slackware 7 system running
here, but on my Debian systems, "ls -l 'dev'lp*" returns this:

crw-rw----    1 root     lp         6,   0 Feb 22  1999 /dev/lp0
crw-rw----    1 root     lp         6,   1 Feb 22  1999 /dev/lp1
crw-rw----    1 root     lp         6,   2 Feb 22  1999 /dev/lp2


Note that only the owner (root) and userids in group lp can use the ports.
lpr can use the ports because it has the setuid and setgid bits set:

-rwsr-sr-x    1 root     lp          15120 Jan  9 11:22 /usr/bin/lpr

One way to let pine print directly to the printer would be to change
permissions on the device: "chmod 666 /dev/lp0". I don't know if this
introduces some problem I'm not thinking of, but it should fix the pine
problem. 

A better solution, if possible with pine (I never use pine to print e-mail,
so I don't remember this part of pine setup) is to tell pine to use lpr to
print, not the raw device. With some printers -- any that require filters in
their printcap entries -- this approach would be a necessity.

At 10:24 PM 5/23/00 -0300, Ted Gervais wrote:
>
>I wonder if someone could tell me what could be wrong here.
>I am running Pine 4.20 and Slackware 2.2.16pre4. 
>I seem to be having a problem with my printer in terms of permissions.
>When I ask PINE to print a message I get back:
>
>sh: /dev/lp0: Permission denied
>
>LP0 is where my printer is at. And it works fine if I want to print
>something , like a document somewhere - and I enter 'pr NAME > /dev/lp0'
>and away it goes.
>
>In my printcap I have the following:
>
>#
># Generic printer:
>lp
>lp=/dev/lp0
>sd=/var/spool/lpd
>sh
>#
>
>Any tips would be appreciated..


------------------------------------"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