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 +0000, 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=1132222893         
> >     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]

Reply via email to