Bug#516945: cups: Serial backend permissions problem
Package: cups
Version: 1.3.8-1lenny4.1
Severity: normal
*** Please type your report below this line ***
Fresh install of Lenny, serial printer added with
lpadmin -p DEC-LA100 -v
serial:/dev/ttyS0?baud=9600+size=8+parity=none+flow=hard -D "DEC
Letterprinter 100" -P textonly.ppd
Print fails with
E [24/Feb/2009:08:18:48 +0000] PID 4993 (/usr/lib/cups/backend/serial)
stopped with status 22!
in log.
# ls -l /dev/ttyS?
crw-rw---- 1 root dialout 4, 64 2009-02-24 15:36 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 2009-02-24 16:09 /dev/ttyS1
crw-rw---- 1 root dialout 4, 66 2009-02-24 14:15 /dev/ttyS2
crw-rw---- 1 root dialout 4, 67 2009-02-24 14:15 /dev/ttyS3
Restarting cups after each change:
chown root.lp /dev/ttyS0
-does not fix.
chmod 666 /dev/ttyS0
-does not fix.
Return /dev/ttyS0 to original permissions/ownership.
# ls -l /usr/lib/cups/backend/serial
-rwxr--r-- 2 root root 14900 2009-01-13 16:53 /usr/lib/cups/backend/serial
(Received theory being serial should run as root with 744, or 700,
permissions)
chmod 700 /usr/lib/cups/backend/serial
-fixes problem.
Note permissions of serial in /usr/lib/cups/backend-available are 700.
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i586)
Kernel: Linux 2.6.26-1-486
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cups depends on:
ii adduser 3.110 add and remove users and groups
ii cups-common 1.3.8-1lenny4.1 Common UNIX Printing
System(tm) -
ii debconf [debconf-2 1.5.24 Debian configuration
management sy
ii ghostscript 8.62.dfsg.1-3.2lenny0 The GPL Ghostscript
PostScript/PDF
ii libavahi-compat-li 0.6.23-3lenny1 Avahi Apple Bonjour
compatibility
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libcups2 1.3.8-1lenny4.1 Common UNIX Printing
System(tm) -
ii libcupsimage2 1.3.8-1lenny4.1 Common UNIX Printing
System(tm) -
ii libdbus-1-3 1.2.1-5 simple interprocess
messaging syst
ii libgnutls26 2.4.2-6 the GNU TLS library -
runtime libr
ii libkrb53 1.6.dfsg.4~beta1-5 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.11-1 OpenLDAP libraries
ii libpam0g 1.0.1-5 Pluggable Authentication
Modules l
ii libpaper1 1.1.23+nmu1 library for handling paper
charact
ii libslp1 1.2.1-7.5 OpenSLP libraries
ii lsb-base 3.2-20 Linux Standard Base 3.2
init scrip
ii perl-modules 5.10.0-19 Core Perl modules
ii poppler-utils [xpd 0.8.7-1 PDF utilitites (based on
libpopple
ii procps 1:3.2.7-11 /proc file system utilities
ii ssl-cert 1.0.23 simple debconf wrapper for
OpenSSL
Versions of packages cups recommends:
ii avahi-utils 0.6.23-3lenny1 Avahi browsing, publishing
and dis
ii cups-client 1.3.8-1lenny4.1 Common UNIX Printing
System(tm) -
ii foomatic-filters 3.0.2-20080211-3.2 OpenPrinting printer
support - fil
ii smbclient 2:3.2.5-4 a LanManager-like simple
client fo
Versions of packages cups suggests:
ii cups-bsd 1.3.8-1lenny4.1 Common UNIX Printing
System(tm) -
pn cups-driver-gutenprint <none> (no description available)
pn cups-pdf <none> (no description available)
ii foomatic-db 20080211-2+nmu1 OpenPrinting printer
support - dat
ii foomatic-db-engine 3.0.2-20080211-1 OpenPrinting printer
support - pro
pn hplip <none> (no description available)
pn xpdf-korean | xpdf-japa <none> (no description available)
-- debconf information:
cupsys/raw-print: true
cupsys/backend: ipp, lpd, parallel, scsi, serial, socket, usb, snmp,
dnssd
Reply to: