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

Re: Parallel Printer Port Problem

* Jeffrey S. Coppock <jcoppock@shastanets.com> [010106 15:32]:
> 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.

Don't do this. The /dev/lp? devices are 0660 by default, with group
"lp"; you only need to add the user who need to use the printer
to the "lp" group (this work too for another devices: group "floppy" for
floppys, "dialout" for serial, ...).

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

Try using /dev/lp1, and see if this help.


Reply to: