Public bug reported:

Binary package hint: cupsys

In Gutsy Gibbon, a printer connected to the serial port /dev/ttyS0
doesn't work because of permission denied error.

$ cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.3.2
# Written by cupsd on 2007-10-19 11:08
<DefaultPrinter FS-1750>
Info Kyocera FS-1750
Location here
DeviceURI serial:/dev/ttyS0
State Idle
StateTime 1192784830
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>

$ dmesg | grep ttyS0
[   14.442083] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[   14.443127] 00:0b: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

$ ls -al /dev/ttyS0
crw-rw---- 1 root dialout 4, 64 Oct 19 11:20 /dev/ttyS0

$ su - cupsys
$ cat > /dev/ttyS0
asdf
^D
_works_!

$ tail /var/log/cups/error_log
E [19/Oct/2007:11:36:15 +0200] [Job 15] Die Gerätdatei „/dev/ttyS0“ konnte 
nicht geöffnet werden: Permission denied
E [19/Oct/2007:11:36:15 +0200] PID 6221 (/usr/lib/cups/backend/serial) stopped 
with status 1!


It does not seem to be a AppArmor problem but an simple permission problem: 
After setting permissions of /dev/ttyS0 to 666 it works without any problem.

Already tried to put the user lp (owner of serial backend process) into
group dialout - with no success.

Any other ideas?

** Affects: cupsys (Ubuntu)
     Importance: Undecided
         Status: New

-- 
cups serial backend failed with Permission denied
https://bugs.launchpad.net/bugs/154277
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to