sudo hp-setup breaks gpg

Bug #1018122 reported by Nicolas Valcarcel
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HPLIP
Fix Released
Undecided
Unassigned
hplip (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

runned sudo hp-setup, configured network all-in-one printer/scanner, installed the drivers that it asked to install and end up getting an error doing "gpg --list-keys" and mutt failing to sign emails. After some digging found out that pubring.gpg and pubring.gpg~ on ~/.gnupg/ had root.root owner.

btw, if i shouldn't run that with sudo there is a documentation bug here: https://help.ubuntu.com/community/ScanningHowTo#LAN-based_scanners

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: hplip 3.12.2-1ubuntu3 [modified: var/lib/hp/hplip.state]
ProcVersionSignature: Ubuntu 3.2.0-25.40-generic 3.2.18
Uname: Linux 3.2.0-25-generic x86_64
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Tue Jun 26 15:48:12 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
Lpstat:
 device for Hewlett-Packard-HP-LaserJet-CM1415fnw: hp:/net/HP_LaserJet_CM1415fnw?zc=dhcppc0
 device for HP_LaserJet_CM1415fnw: hp:/net/HP_LaserJet_CM1415fnw?zc=dhcppc0
 device for HP_LaserJet_CM1415fnw_fax: hpfax:/net/HP_LaserJet_CM1415fnw?zc=dhcppc0
MachineType: LENOVO 1024DDU
Papersize: letter
PpdFiles:
 HP_LaserJet_CM1415fnw_fax: HP Fax2 hpcups
 Hewlett-Packard-HP-LaserJet-CM1415fnw: HP LaserJet cm1415fnw pcl3, hpcups 3.12.2
 HP_LaserJet_CM1415fnw: HP LaserJet 2410 Foomatic/Postscript
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-25-generic root=UUID=a1e29e70-552e-4ef4-a20e-f750fd241d35 ro quiet splash vt.handoff=7
SourcePackage: hplip
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/21/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 45CN38WW
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Emerald Lake
dmi.board.vendor: LENOVO
dmi.board.version: FAB1
dmi.chassis.asset.tag: Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: 0.1
dmi.modalias: dmi:bvnLENOVO:bvr45CN38WW:bd10/21/2011:svnLENOVO:pn1024DDU:pvrIdeapadZ570:rvnLENOVO:rnEmeraldLake:rvrFAB1:cvnLENOVO:ct10:cvr0.1:
dmi.product.name: 1024DDU
dmi.product.version: Ideapad Z570
dmi.sys.vendor: LENOVO

Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hplip (Ubuntu):
status: New → Confirmed
Revision history for this message
dmatt (martind) wrote :

Happened to me on Kubuntu 14.04.

I ran hp-setup without sudo. It asked me to enter my login password most likely to get sudo rigths anyway. On subsequent restart my ~/.gnupg/pubring.gpg and also backup ~/.gnupg/pubring.gpg~ were owned by root. Chown to my user restored the functionality back.

I do not see any information added even though I reported this via ubuntu-bug.

hplip version 3.14.3-0ubuntu3.2
Linux *** 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:40:53 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

hp-setup seems to turn files in the user's home directory (like GPG key files) to root ownership.

Can someone from the HPLIP developers at HP have a look into this? Thanks.

Revision history for this message
goutam (goutamkk) wrote :

Hi Till,

This bug is already fixed in hplip-3.14.6 version with reference to https://bugs.launchpad.net/hplip/+bug/1310869.

Hi dmatt,

Can you download "hplip-3.14.6.run" file from http://hplipopensource.com/hplip-web/gethplip.html and install it by running command "sh hplip-3.14.6.run" in terminal.

Let us know if the issue is resolved for you.

Thanks,
Goutam

Changed in hplip:
status: New → Fix Released
Revision history for this message
dmatt (martind) wrote :

Hopefully hplip will be updated to fixed version in Ubuntu repository. I tried to test newer version in virtual environment, but there was not gpg installed and hp-setup did not create pubring, so the test is incoclusive.

Revision history for this message
gf (gf-interlinks-deactivatedaccount) wrote :

Changing status on the hplip (ubuntu) package to match HPLIP package (fix released)

G

Changed in hplip (Ubuntu):
status: Confirmed → Fix Released
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.