Re: Parallel Printer Port Problem
On Fri, 5 Jan 2001, Jeffrey S. Coppock wrote:
> 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.
So it isn't the kernel config that's wrong.
> The lpd.conf file has all options commented out.
> ACCEPT SERVICE=C SERVER REMOTEUSER=root
> ACCEPT SERVICE=C LPC=lpd,status,printcap
> REJECT SERVICE=C
> ACCEPT SERVICE=M SAMEHOST SAMEUSER
> ACCEPT SERVICE=M SERVER REMOTEUSER=root
> REJECT SERVICE=M
> DEFAULT ACCEPT
looks fine to me too.
> lp|dj952c|HP Deskjet 952C:\
looks ok too.
> Also, nothing is being logged and nothing shows up in the queue (lpq).
No errors in /var/log/lp-errs of in /var/log/lp-acct?
Check the file permissions for the spool directory's and the file's that
are in these directory's. Also make sure that lpr is setuid-root.
You can also use the -D switch to turn debuggin on. Maybe it gives you
more usefull information 'bout what's going wrong.