Bug#339584: hpoj: ptal-mlcd reports Access denied to parallel port!
Hi Mark! Mark Purcell [2006-02-10 22:20 +1100]: Martin, Julian, Has ubuntu been able to make any headway on this. I am about at the point with debian/hpoj to revert hpoj to run as root, allowing access to the parallel port. Oops, sorry for not having answered to this. This sounds like a rather shallow bug actually: it seems that the hpoj user is not in the 'lp' group, so that it isn't able to access /dev/lp*. Or did you already check that? If that's not the case, then an initgroups() call could be missing somewhere. I just wonder why it works for USB devices, which also requires a special group to access them. (BTW, I don't have such a printer, so I can't test all of this myself). Thanks, Martin -- Martin Pitthttp://www.piware.de Ubuntu Developer http://www.ubuntu.com Debian Developer http://www.debian.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#339584: hpoj: ptal-mlcd reports Access denied to parallel port!
On Mon, Feb 13, 2006 at 09:06:57AM +0100, Martin Pitt wrote: Hi Mark! Mark Purcell [2006-02-10 22:20 +1100]: Martin, Julian, Has ubuntu been able to make any headway on this. I am about at the point with debian/hpoj to revert hpoj to run as root, allowing access to the parallel port. Oops, sorry for not having answered to this. This sounds like a rather shallow bug actually: it seems that the hpoj user is not in the 'lp' group, so that it isn't able to access /dev/lp*. Or did you already check that? If that's not the case, then an initgroups() call could be missing somewhere. I just wonder why it works for USB devices, which also requires a special group to access them. (BTW, I don't have such a printer, so I can't test all of this myself). No, it isn't shallow at all. Have a look at the bug log: It seems that the cause of the bug is that for the parallel port, ptal-mlcd calls iolp(3), which is refused by the kernel when called by a non-root user. So the only way around this one is to run as root and then to drop root privileges when possible. But that's a lot more work. Julian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#339584: hpoj: ptal-mlcd reports Access denied to parallel port!
Martin, Julian, Has ubuntu been able to make any headway on this. I am about at the point with debian/hpoj to revert hpoj to run as root, allowing access to the parallel port. Thanks, Mark On Friday 06 January 2006 06:16, Julian Gilbey wrote: Hi Martin! Could you have a look at this bug. How can the Ubuntu patch work at all given the point below? ptal-mlcd needs access to the IO ports, doesn't it? Isn't it necessary for the daemon to start as root to get the ports it needs and then to drop privileges? Julian On Wed, Jan 04, 2006 at 05:10:55AM +, Julian Gilbey wrote: On Thu, Nov 17, 2005 at 09:25:13PM +1100, Mike Williams wrote: Package: hpoj Version: 0.91-9 Severity: important I can no longer print to my parallel-port OfficeJet K80 printer. When probing using ptal-init setup, it reports *** ptal-mlcd failed to start! Check syslog file for error messages. /var/log/lpr.log contains: Nov 17 21:21:33 kumara ptal-mlcd: FATAL ERROR at ParPort.cpp:48, dev=mlc:par:probe, pid=6847, e=1, t=113893 Access denied to parallel port! It seems that the problem might be something like this: the non-root daemon patch applied to fix bug#298064 means that ptal-init tries to run ptal-mlcd as hpojlp:lp. But ptal-mlcd calls iolp(3), which is refused by the kernel when called by a non-root user, or so it would appear. I'm not sure whether this is the reason for the breakage, but it sure looks likely. I'm having no problems on my out-of-date testing system running hpoj version 0.91-4, but have no joy at all on my unstable system. Julian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#339584: hpoj: ptal-mlcd reports Access denied to parallel port!
On Fri, Feb 10, 2006 at 10:20:36PM +1100, Mark Purcell wrote: Martin, Julian, Has ubuntu been able to make any headway on this. I am about at the point with debian/hpoj to revert hpoj to run as root, allowing access to the parallel port. We no longer support hpoj, and use hplip in its place. -- - mdz -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#339584: hpoj: ptal-mlcd reports Access denied to parallel port!
Matt Zimmerman wrote: We no longer support hpoj, and use hplip in its place. For what it's worth, I've also dropped hpoj in favour of hplip, which seems to be working nicely. I'd be happy for you to close this bug report. -- cheers, MikeW http://www.dogbiscuit.org/mdub/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#339584: hpoj: ptal-mlcd reports 'Access denied to parallel port!'
Could you have a look at this bug. How can the Ubuntu patch work at all given the point below? ptal-mlcd needs access to the IO ports, doesn't it? Isn't it necessary for the daemon to start as root to get the ports it needs and then to drop privileges? What I think is happening is that the majority of users for hpoj are using the USB interface which works fine as non-root. ALthough there is now the hplip which is going to provide a much better USB experience for HP multi function device owners. This running as non-root doesn't effect many users. The parallel port users can't use hplip, and are thus forced to use hpoj, which is broken for parallel port use running as non-root. My intentions with the Debian package are to back out the non-root patch and leave hpoj running as root to satisfy the parallel port users. Unless we can get a non-root patch which works with the parallel port as well. Also have a look at https://bugzilla.ubuntu.com/show_bug.cgi?id=11821 http://bugs.debian.org/339584 where this is discussed. Mark -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#339584: hpoj: ptal-mlcd reports Access denied to parallel port!
Hi Martin! Could you have a look at this bug. How can the Ubuntu patch work at all given the point below? ptal-mlcd needs access to the IO ports, doesn't it? Isn't it necessary for the daemon to start as root to get the ports it needs and then to drop privileges? Julian On Wed, Jan 04, 2006 at 05:10:55AM +, Julian Gilbey wrote: On Thu, Nov 17, 2005 at 09:25:13PM +1100, Mike Williams wrote: Package: hpoj Version: 0.91-9 Severity: important I can no longer print to my parallel-port OfficeJet K80 printer. When probing using ptal-init setup, it reports *** ptal-mlcd failed to start! Check syslog file for error messages. /var/log/lpr.log contains: Nov 17 21:21:33 kumara ptal-mlcd: FATAL ERROR at ParPort.cpp:48, dev=mlc:par:probe, pid=6847, e=1, t=113893 Access denied to parallel port! It seems that the problem might be something like this: the non-root daemon patch applied to fix bug#298064 means that ptal-init tries to run ptal-mlcd as hpojlp:lp. But ptal-mlcd calls iolp(3), which is refused by the kernel when called by a non-root user, or so it would appear. I'm not sure whether this is the reason for the breakage, but it sure looks likely. I'm having no problems on my out-of-date testing system running hpoj version 0.91-4, but have no joy at all on my unstable system. Julian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#339584: hpoj: ptal-mlcd reports Access denied to parallel port!
On Thu, Nov 17, 2005 at 09:25:13PM +1100, Mike Williams wrote: Package: hpoj Version: 0.91-9 Severity: important I can no longer print to my parallel-port OfficeJet K80 printer. When probing using ptal-init setup, it reports *** ptal-mlcd failed to start! Check syslog file for error messages. /var/log/lpr.log contains: Nov 17 21:21:33 kumara ptal-mlcd: FATAL ERROR at ParPort.cpp:48, dev=mlc:par:probe, pid=6847, e=1, t=113893 Access denied to parallel port! It seems that the problem might be something like this: the non-root daemon patch applied to fix bug#298064 means that ptal-init tries to run ptal-mlcd as hpojlp:lp. But ptal-mlcd calls iolp(3), which is refused by the kernel when called by a non-root user, or so it would appear. I'm not sure whether this is the reason for the breakage, but it sure looks likely. I'm having no problems on my out-of-date testing system running hpoj version 0.91-4, but have no joy at all on my unstable system. Julian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#339584: hpoj: ptal-mlcd reports Access denied to parallel port!
Package: hpoj Version: 0.91-9 Severity: important I can no longer print to my parallel-port OfficeJet K80 printer. When probing using ptal-init setup, it reports *** ptal-mlcd failed to start! Check syslog file for error messages. /var/log/lpr.log contains: Nov 17 21:21:33 kumara ptal-mlcd: FATAL ERROR at ParPort.cpp:48, dev=mlc:par:probe, pid=6847, e=1, t=113893 Access denied to parallel port! From dmesg: parport_pc: VIA 686A/8231 detected parport_pc: probing current configuration parport_pc: Current parallel port base: 0x378 parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP(,...)] parport_pc: VIA parallel port: io=0x378, irq=7 ... lp0: using parport0 (interrupt-driven). -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing'), (50, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.11 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages hpoj depends on: ii adduser 3.77 Add and remove users and groups ii libc6 2.3.5-6GNU C Library: Shared libraries an ii libgcc1 1:4.0.2-3 GCC support library ii libsane 1.0.16-4 API library for scanners ii libsnmp9 5.2.1.2-4 NET SNMP (Simple Network Managemen ii libstdc++64.0.2-3The GNU Standard C++ Library v3 Versions of packages hpoj recommends: ii cupsys 1.1.23-12Common UNIX Printing System(tm) - ii cupsys-bsd [lpr]1.1.23-12Common UNIX Printing System(tm) - ii foomatic-filters3.0.2-20050720-1 linuxprinting.org printer support ii hpijs 2.1.3+0.9.3-3HP Linux Printing and Imaging - gs -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]