[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Parallel Printer Port Problem



Jo, et al;

I tried the echo redirect below and was told 'permission denied', so I tried it as root and it worked, the printer printed the message.

I chmod 0666 /dev/lp0 and it worked without su.

I tried tried lpr -Plp <textfile> and it wouldn't work with or without su.

On the magicfilter config, are you talking about the printcap file?  That was generated by the magicfilterconfig utility, and I deleted and recreated this file several times.  Here's what it looks like:

The lpd.conf file has all options commented out.

The lpd.perms file looks fine:

## You can make sure that connections come from a privileged port.
## Default is to allow them from any port so that non-setuid programs
#  can do printing.
#  Totally RFC1179
#REJECT SERVICE=X NOT PORT=1-1023
#REJECT SERVICE=X NOT PORT=1-1023
#  Privileged
#REJECT SERVICE=X NOT PORT=721-731
#
# allow root on server to control jobs
ACCEPT SERVICE=C SERVER REMOTEUSER=root
# allow anybody to get server, status, and printcap
ACCEPT SERVICE=C LPC=lpd,status,printcap
# reject all others
REJECT SERVICE=C
#
# allow same user on originating host to remove a job
ACCEPT SERVICE=M SAMEHOST SAMEUSER
# allow root on server to remove a job
ACCEPT SERVICE=M SERVER REMOTEUSER=root
REJECT SERVICE=M
# all other operations allowed
DEFAULT ACCEPT

Any other ideas?

thanks,
jc

---------------------------

# This file was generated by /usr/sbin/magicfilterconfig.
#
lp|dj952c|HP Deskjet 952C:\
	:lp=/dev/lp0:sd=/var/spool/lpd/dj952c:\
	:sh:pw#80:pl#66:px#1440:mx#0:\
	:if=/etc/magicfilter/dj690c-best-filter:\
	:af=/var/log/lp-acct:lf=/var/log/lp-errs:

Also, nothing is being logged and nothing shows up in the queue (lpq).

On Fri, Jan 05, 2001 at 10:32:42AM +0000, Jo Geraerts wrote:
> Hello,
> 
> On Thu, 4 Jan 2001, Jeffrey S. Coppock wrote:
> 
> > Jan  4 07:36:20 localhost kernel: parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [SPP,ECP,ECPPS2]
> > Jan  4 07:36:21 localhost kernel: parport_probe: succeeded
> > Jan  4 07:36:21 localhost kernel: parport0: Printer, HEWLETT-PACKARD DESKJET 950C
> > Jan  4 07:36:21 localhost kernel: lp0: using parport0 (interrupt-driven).
> > I've re-installed magicfilter, but that didn't help either.
> 
> Does it print if you run the following command:
> 
> echo "this is a test">/dev/lp0
> 
> If it doesn't, take another look to the log's for errors. If it does,
> there's something wrong with your magicfilter config
> 
> Greetz,
> Jo

-- 

**********************************
Jeff Coppock
Nortel Networks IP Services
email: jcoppock@shastanets.com
email: jcoppock@nortelnetworks.com
(408) 565-3848  :Office  ESN: 655
(510) 703-5910  :Mobile
(925) 292-1156  :Home Office



Reply to: