Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237537 - net-print/hplip >= 2.8.6b needs chmod 700
Summary: net-print/hplip >= 2.8.6b needs chmod 700
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Printing Team
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-13 02:16 UTC by xiando
Modified: 2010-04-21 20:25 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xiando 2008-09-13 02:16:57 UTC
net-print/hplip will not print until file /usr/libexec/cups/backend/hp is chmod 700.

The file is by Gentoo installed as chmod 755.

I have absolutely no clue WHY OH WHY it will not work until it is chmod 700. It's not like it lacks lots of executable permission, there might be code within it which instructs it to do nothing if everyone has access. I don't know.

But I do know that I pulled my hair for many hours until I discovered that the solution was available deep within the forums.gentoo.org all along. There are plenty of hplip reports at bugs.gentoo.org, none indicate this.

Solution for users who find this: chmod 700 /usr/libexec/cups/backend/hp 

more info: http://forums.gentoo.org/viewtopic-t-701122-highlight-hplip.html

Reproducible: Always

Steps to Reproduce:
1. emerge hplip
2. try to print (regardless of what/where, cups test pages, from kde, gnome, etc)
3. no printing for you
Actual Results:  
no printer activity, nothing happens

Expected Results:  
printer activity

I dare call this major bug as it breaks printing for most of those who owns printer hardware from the Hewlett-Packard Development Company.
Comment 1 Denis Dupeyron (RETIRED) gentoo-dev 2008-09-13 07:13:53 UTC
Is the user from which you are trying to print in the lp group ?

Denis.
Comment 2 xiando 2008-09-13 15:47:16 UTC
The user trying to print was a member of the lp group.

Further, the user could use the local cups service to print on non-local printers (cups network printers). This bug relates to the hplip cups backend, not user access to cups.

I should add that there were jobs in the printer queue when I found the chmod 700 solution in the forum. When I did chmod 700 /usr/libexec/cups/backend/hp <enter> the printer immediately started doing it's thing and spewed out the whole print queue for the locally attached HP printer.
Comment 3 Denis Dupeyron (RETIRED) gentoo-dev 2008-09-13 16:31:50 UTC
Thanks for your answer.

I can't reproduce this here. I have always been able to print correctly with this version of hplip. I am not saying your problem does not exist though, but that it is specific to your system. Do you have an idea of when this stopped working as expected ? It's a shame I had to do a lot of cleanup in the ebuild versions due to the recent security issue.

I will not use your workaround blindly in the ebuild for a number of reasons. The main one being that this is the stable version of hplip and using such an unexplained hack to fix a mysterious issue that 2 users had could be dangerous for the many others (and there are quite a few in the case of hplip).

What I suggest instead is you file a bug upstream and give them all necessary details. They are much better suited than me to investigate this. There's very little we do to the code and it's all available in src_unpack in the ebuild. Also, none of this could possibly be the reason of your issue, in my opinion. Feel free to contact me or tell them to contact me in case you or they need more information, but the ebuild should be self explanatory.

In the meantime you may want to try hplip-2.8.7, although I don't see anything in the changelog that would help, and you could send me the usual emerge --info for me to have a look just in case there's something suspicious.

Denis.
Comment 4 Enrique Domínguez 2008-10-09 13:09:28 UTC
(In reply to comment #2)
> The user trying to print was a member of the lp group.
> 
> Further, the user could use the local cups service to print on non-local
> printers (cups network printers). This bug relates to the hplip cups backend,
> not user access to cups.
> 
> I should add that there were jobs in the printer queue when I found the chmod
> 700 solution in the forum. When I did chmod 700 /usr/libexec/cups/backend/hp
> <enter> the printer immediately started doing it's thing and spewed out the
> whole print queue for the locally attached HP printer.
> 

Thanks you very much for your workaround, same problem here and solved finally. Thanks a lot.
Comment 5 Garrett Holland 2009-02-21 19:55:35 UTC
I can confirm that I had the same problem, I was unable to print from a user account or root and hp-toolbox would give "device communication error 5012".  This workaround fixed this for me.  Thanks guys.

Comment 6 Thomas Sachau gentoo-dev 2009-03-27 15:30:47 UTC
/usr/libexec/cups/backend/hp has normal rights for me and i am able to print.

Can you reproduce this by chmodding it to 755 again?
Comment 7 Garrett Holland 2009-05-13 00:12:17 UTC
(In reply to comment #6)
> /usr/libexec/cups/backend/hp has normal rights for me and i am able to print.
> 
> Can you reproduce this by chmodding it to 755 again?
> 

Yes, it is reproducible.  If I chmod to 755 and restart cups I get the device communication error.  Chmod back to 700 and restart cups and the printer works fine.  

I don't know if it's related, but hp-check reports that it can't find scanext.  Scanner works fine, even with the device communication error though.
Comment 8 Tassilo Horn 2009-07-08 19:20:23 UTC
I can reproduce that with a HP LaserJet m1005 MFP. 700 works, 755 not.
Comment 9 Daniel Pielmeier gentoo-dev 2010-01-24 23:12:07 UTC
Does this still apply to the newest version hplip-3.9.12?
Comment 10 Daniel Pielmeier gentoo-dev 2010-04-01 10:08:50 UTC
(In reply to comment #9)
> Does this still apply to the newest version hplip-3.9.12?

Is this still a problem with recent versions of hplip. If nobody reports here I will close this bug in the next weeks. If the problem persists I will open an upstream bug about it, but before I need to know if the problem is still there.
Comment 11 Tassilo Horn 2010-04-05 17:18:11 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > Does this still apply to the newest version hplip-3.9.12?
> 
> Is this still a problem with recent versions of hplip.

For me it is still an issue with 3.10.2-r3, but not with all printers.  My father has two HP printers (MFC 1500 DeskJet something, and a LaserJet m1005), and with the former, printing did work fine while the latter needs 700 permissions.
Comment 12 Daniel Pielmeier gentoo-dev 2010-04-14 16:43:46 UTC
This bug is now tracked upstream under https://bugs.launchpad.net/bugs/556838. For those who are interested in a fix please continue there and report the requested information (Printer model and output of "lsusb -v").
Comment 13 Tassilo Horn 2010-04-21 20:25:47 UTC
Great, I've added the infos.