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

Bug#378147: cups doesn't print on parallel printer: /dev/lp0: permission denied



Package: cupsys
Version: 1.2.1-3
Severity: important

Hello, cups doesn't print on parallel printer... this bug may be related
to

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=370834
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=330511

but those bug report seem to be slightly different to me.

When trying to print on

# Printer configuration file for CUPS v1.2.1
# Written by cupsd on 2006-07-13 19:05
<DefaultPrinter EPSONStylusColor600>
Info EPSON Stylus Color 600
Location
DeviceURI parallel:/dev/lp0
State Idle
StateTime 1152810326
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

which I setup via kdeprint 3.5.3 - that I fixed to use localhost:631 first
(see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=373720) I get:

I [13/Jul/2006:19:05:07 +0200] Job 4 queued on "EPSONStylusColor600" by
"root".
I [13/Jul/2006:19:05:07 +0200] Started filter
/usr/lib/cups/filter/pstops (PID 32521) for job 4.
I [13/Jul/2006:19:05:07 +0200] Started filter
/usr/lib/cups/filter/pstoraster (PID 32522) for job 4.
I [13/Jul/2006:19:05:07 +0200] Started filter
/usr/lib/cups/filter/rastertogutenprint.5.0 (PID 32523) for job 4.
I [13/Jul/2006:19:05:07 +0200] Started backend
/usr/lib/cups/backend/parallel (PID 32524) for job 4.
E [13/Jul/2006:19:05:07 +0200] [Job 4] Unable to open parallel port
device file "/dev/lp0": Permission denied
E [13/Jul/2006:19:05:07 +0200] PID 32524
(/usr/lib/cups/backend/parallel) stopped with status 1!
I [13/Jul/2006:19:05:07 +0200] Hint: Try setting the LogLevel to "debug"
to find out more.
I [13/Jul/2006:19:05:19 +0200] Saving printers.conf...
I [13/Jul/2006:19:05:19 +0200] Job 4 was cancelled by "root".

Permissions were:

root@deepdance:~ -> ls -l /dev/lp0
crw-rw---- 1 root lp 6, 0 2006-07-13 18:46 /dev/lp0

The printing user is in "lp" group:

martin@deepdance:~ -> id | grep lp
uid=1000(martin) gid=1000(martin)
Gruppen=7(lp),...

When I issue "chmod a+rw /dev/lp0" printing works. I did this quick and
dirty fix cause I just wanted to print something (seems to be difficult since
introduction of CUPS 1.2).

I don't understand why I don't have permissions on /dev/lp0 especially
when the job was queued by "root" which I don't understand either. I
thought it should have been queued as user "martin" by kdeprint.

I am using udev 0.093-1 with a self compiled 2.6.17.1 with sws2 patches
and an XFS corruption fix
(http://bugzilla.kernel.org/show_bug.cgi?id=6757) on an IBM ThinkPad T23
with port replicator.

Regards,
Martin


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.1-tp23-sws2-2.2.6-xfs-fix
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages cupsys depends on:
ii  adduser                  3.87            Add and remove users and groups
ii  debconf [debconf-2.0]    1.5.2           Debian configuration management sy
ii  gs-esp                   8.15.1.dfsg.1-2 The Ghostscript PostScript interpr
ii  libacl1                  2.2.39-1        Access control list shared library
ii  libc6                    2.3.6-15        GNU C Library: Shared libraries
ii  libcupsimage2            1.2.1-3         Common UNIX Printing System(tm) - 
ii  libcupsys2               1.2.1-3         Common UNIX Printing System(tm) - 
ii  libdbus-1-2              0.62-4          simple interprocess messaging syst
ii  libgnutls13              1.4.0-2         the GNU TLS library - runtime libr
ii  libldap2                 2.1.30-13+b1    OpenLDAP libraries
ii  libpam0g                 0.79-3.1        Pluggable Authentication Modules l
ii  libpaper1                1.1.19          Library for handling paper charact
ii  libslp1                  1.2.1-5         OpenSLP libraries
ii  lsb-base                 3.1-10          Linux Standard Base 3.1 init scrip
ii  patch                    2.5.9-4         Apply a diff file to an original
ii  perl-modules             5.8.8-4         Core Perl modules
ii  procps                   1:3.2.7-2       /proc file system utilities
ii  xpdf-utils [poppler-util 3.01-8          Portable Document Format (PDF) sui
ii  zlib1g                   1:1.2.3-11      compression library - runtime

Versions of packages cupsys recommends:
ii  cupsys-client                 1.2.1-3    Common UNIX Printing System(tm) - 
pn  foomatic-filters              <none>     (no description available)
ii  smbclient                     3.0.22-1   a LanManager-like simple client fo

-- debconf information:
  cupsys/raw-print: true
  cupsys/ports: localhost:631
  cupsys/backend: ipp, lpd, parallel, socket, usb
  cupsys/portserror:
  cupsys/browse: true




Reply to: