Printer stopped due to wrong lp permission
This is a recurring problem. After a reboot the printer (attached to the paralel port on my Kubuntu box) stopped printing. A look at the status of the printer on the KDE from kcontrol, shows the printer is stopped. Restarting it doesn't work (after a few secons its status reverts to "stopped").
Looking at the CUPS error log file was revealing:
$ tail /var/log/cups/error_log
I [09/Jan/2006:13:17:59 +0100] Printer 'Sepultura' started by 'root'.
I [09/Jan/2006:13:17:59 +0100] Started filter /usr/lib/cups/filter/pstops (PID 10528) for job 168.
I [09/Jan/2006:13:17:59 +0100] Started filter /usr/lib/cups/filter/foomatic-rip (PID 10529) for job 168.
I [09/Jan/2006:13:17:59 +0100] Started backend /usr/lib/cups/backend/parallel (PID 10530) for job 168.
E [09/Jan/2006:13:17:59 +0100] [Job 168] Unable to open parallel port device file "/dev/lp0": Permission denied
E [09/Jan/2006:13:17:59 +0100] PID 10530 stopped with status 1!
I [09/Jan/2006:13:17:59 +0100] Hint: Try setting the LogLevel to "debug" to find out more.
There is a problem with the persissions of the parallel port! This seems to be a common problem.
The/my solution is to change the ownership of /dev/lp0 from root (which it was for some reason) to lp:
$ sudo chown lp /dev/lp0
Looking at the CUPS error log file was revealing:
$ tail /var/log/cups/error_log
I [09/Jan/2006:13:17:59 +0100] Printer 'Sepultura' started by 'root'.
I [09/Jan/2006:13:17:59 +0100] Started filter /usr/lib/cups/filter/pstops (PID 10528) for job 168.
I [09/Jan/2006:13:17:59 +0100] Started filter /usr/lib/cups/filter/foomatic-rip (PID 10529) for job 168.
I [09/Jan/2006:13:17:59 +0100] Started backend /usr/lib/cups/backend/parallel (PID 10530) for job 168.
E [09/Jan/2006:13:17:59 +0100] [Job 168] Unable to open parallel port device file "/dev/lp0": Permission denied
E [09/Jan/2006:13:17:59 +0100] PID 10530 stopped with status 1!
I [09/Jan/2006:13:17:59 +0100] Hint: Try setting the LogLevel to "debug" to find out more.
There is a problem with the persissions of the parallel port! This seems to be a common problem.
The/my solution is to change the ownership of /dev/lp0 from root (which it was for some reason) to lp:
$ sudo chown lp /dev/lp0

0 Comments:
Post a Comment
<< Home