/dev/lp0: permission denied

Bug #26166 reported by Antony Gelberg
6
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
Medium
Jonathan Riddell

Bug Description

Something odd after restarting cupsys on a breezy machine tonight. Using kubuntu
but assume it's a generic issue. lpq said "<printername> is not ready" and
trying to print gave:
E [25/Nov/2005:01:02:07 +0000] [Job 55] Unable to open parallel port device file
"/dev/lp0": Permission denied

ls -l /dev/lp0 was:
crw-rw---- 1 root lp 6, 0 2005-10-31 14:36 /dev/lp0

cupsys is in the lp group, so all should have been fine. I note that cupsd is
running as lp, not cupsys. This explains it. chmod 0660 /dev/lp0 && chown
lp /dev/lp0 enables printing.

So either there is a bug in cupsys and it is running as lp instead of cupsys, or
there is a bug in udev which should chown lp /dev/lp0.

(Entered as i386, may be applicable on all platforms.)

Revision history for this message
Martin Pitt (pitti) wrote :

> I note that cupsd is running as lp, not cupsys.

That's indeed the problem. Did you change anything in /etc/cups/cupsd.conf, in particular the 'User' directive? Can you please attach your file here?

Revision history for this message
Martin Pitt (pitti) wrote :

also, please give the output of

  id cupsys

Changed in cupsys:
status: Unconfirmed → Needs Info
Revision history for this message
Daniel Robitaille (robitaille) wrote :

No replies from initial reporter since November.

Anthony, feel free to re-open this bug report if you still have this problem. And if you do, please attach the file "/etc/cups/cupsd.conf" and give the output of the command "id cupsys". Thanks.

Changed in cupsys:
status: Needs Info → Rejected
Revision history for this message
Antony Gelberg (antony-wayforth) wrote :

antony@officepc:~$ id cupsys
uid=102(cupsys) gid=107(lpadmin) groups=107(lpadmin),7(lp),20(dialout)

This is from the system that I have modified to work.

Revision history for this message
Antony Gelberg (antony-wayforth) wrote : My cupsd.conf

As requested. NB It seems from the comment at the top that it was generated by the KDE print tool.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

Reopened after the info was provided.

Changed in cupsys:
status: Rejected → Unconfirmed
Revision history for this message
Matt Zimmerman (mdz) wrote :

Sounds like the KDE print tool mangled the config file

Changed in cupsys:
assignee: nobody → jr
Revision history for this message
Didier Raboud (odyx) wrote :

Does it appear on latest Dapper? If no, please close the bug as "Fix released".

Revision history for this message
Caroline Ford (secretlondon) wrote :

Is this still a problem on Dapper or on Edgy?

Revision history for this message
Alex Muntada (alex.muntada) wrote :

Your bug lacks information we would need to investigate further. We are now going to close the bug - please reopen if you have more information at hand.

Changed in cupsys:
status: Needs Info → Rejected
Revision history for this message
dennyhalim.com (mail2dny) wrote :
Download full text (12.1 KiB)

 id cupsys
id: cupsys: No such user

E [14/May/2008:08:39:37 +0700] Unknown User "cupsys" on line 4, ignoring!
E [14/May/2008:08:39:37 +0700] Unknown directive RunAsUser on line 6.
I [14/May/2008:08:39:37 +0700] Listening to :::631 (IPv6)
I [14/May/2008:08:39:37 +0700] Listening to 0.0.0.0:631 (IPv4)
I [14/May/2008:08:39:37 +0700] Listening to /var/run/cups/cups.sock (Domain)
E [14/May/2008:08:39:37 +0700] Unable to include config file "/etc/cups/cupsd-browsing.conf" - No such file or directory
W [14/May/2008:08:39:37 +0700] "AuthClass User" is deprecated; consider using "Require valid-user" on line 23.
W [14/May/2008:08:39:37 +0700] "AuthClass System" is deprecated; consider using "Require user @SYSTEM" on line 27.
E [14/May/2008:08:39:37 +0700] Bad IPP operation name "CUPS-Add-Device" on line 46!
E [14/May/2008:08:39:37 +0700] Bad IPP operation name "CUPS-Delete-Device" on line 46!
I [14/May/2008:08:39:37 +0700] Loaded configuration file "/etc/cups/cupsd.conf"
N [14/May/2008:08:39:37 +0700] Group and SystemGroup cannot use the same groups!
I [14/May/2008:08:39:37 +0700] Resetting Group to "root"...
I [14/May/2008:08:39:37 +0700] Using default TempDir of /var/spool/cups/tmp...
I [14/May/2008:08:39:37 +0700] Configured for up to 100 clients.
I [14/May/2008:08:39:37 +0700] Allowing up to 100 client connections per host.
I [14/May/2008:08:39:37 +0700] Using policy "default" as the default!
I [14/May/2008:08:39:37 +0700] Full reload is required.
I [14/May/2008:08:39:37 +0700] Saving job cache file "/var/cache/cups/job.cache"...
I [14/May/2008:08:39:37 +0700] Loaded MIME database from '/usr/share/cups/mime:/etc/cups': 36 types, 40 filters...
I [14/May/2008:08:39:37 +0700] Loading job cache file "/var/cache/cups/job.cache"...
I [14/May/2008:08:39:37 +0700] Full reload complete.
I [14/May/2008:08:39:37 +0700] Listening to :::631 on fd 4...
I [14/May/2008:08:39:37 +0700] Listening to 0.0.0.0:631 on fd 5...
I [14/May/2008:08:39:37 +0700] Listening to /var/run/cups/cups.sock on fd 6...
I [14/May/2008:08:39:37 +0700] Resuming new connection processing...
I [14/May/2008:09:26:01 +0700] [Job 1800] Adding start banner page "none".
I [14/May/2008:09:26:01 +0700] [Job 1800] Adding job file of type application/postscript.
I [14/May/2008:09:26:01 +0700] [Job 1800] Adding end banner page "none".
I [14/May/2008:09:26:01 +0700] [Job 1800] Queued on "lx300" by "operation".
I [14/May/2008:09:26:01 +0700] [Job 1800] Started filter /usr/lib/cups/filter/pstops (PID 9635)
I [14/May/2008:09:26:01 +0700] [Job 1800] Started filter /usr/lib/cups/filter/foomatic-rip (PID 9636)
I [14/May/2008:09:26:01 +0700] [Job 1800] Started backend /usr/lib/cups/backend/epson (PID 9637)
E [14/May/2008:09:26:02 +0700] [Job 1800] Unable to open parallel port device file: Permission denied
E [14/May/2008:09:26:02 +0700] PID 9637 (/usr/lib/cups/backend/epson) stopped with status 1!
I [14/May/2008:09:26:02 +0700] Hint: Try setting the LogLevel to "debug" to find out more.
E [14/May/2008:09:26:03 +0700] PID 9636 (/usr/lib/cups/filter/foomatic-rip) stopped with status 9!
I [14/May/2008:09:26:03 +0700] Hint: Try setting the LogLevel to "debug" to find out more.
I [14/May/2008:09:26:03 +0700] [J...

Revision history for this message
dennyhalim.com (mail2dny) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.