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]