[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#825383: /usr/share/hplip/doctor.py: hp-doctor will not accept sudo password and there is no root account



severity 825383 minor
thanks



On Mon 29 Jan 2018 at 14:41:50 +0000, Brian Potkin wrote:

> On Sun 28 Jan 2018 at 17:40:46 +0000, Brian Potkin wrote:
> 
> > On Sun 28 Jan 2018 at 17:11:49 +0100, Reinhard John wrote:
> > 
> > > I removed two dependencies to test the proposed workaround. Besides: The
> > > correct path of the file is /usr/share/hplip/base/password.py.
> > > Now the hp-doctor asked for the sudoer´s password. But: the installation of
> > > the missing dependencies failed.
> > > 
> > > > ENTER SUDO PASSWORD
> > > > -------------------
> > > > Please enter the sudoer (reinhard)'s password:
> > > > Do you want to update repository and Install missing/incompatible
> > > > packages. (a=install all*, c=custom_install, s=skip):a
> > > > Updating repository
> > > > -------------------
> > > > Installing Missing/Incompatible packages
> > > > ----------------------------------------
> > > > cmd =libssl-dev
> > > > error: Failed to install 'libssl-dev' package, please install manually.
> > > > cmd =libsane-dev
> > > > error: Failed to install 'libsane-dev' package, please install manually.
> > > 
> > > Do you think this error results of a follow-up configuration problem in
> > > another file?
> > > 
> > > I will send a bug report to the hplip developers. If there are any solutions
> > > I will post them here.
> > 
> > Success, then; you do not need a root password. Thanks for the testing
> > and the path correction.
> > 
> > I can see no reason why you would need those two files to print or scan.
> > Forget about them.
> 
> My response was less than adequate; apologies. I had actually tested
> hp-plugin after changing su to sudo in password.py. It worked but you
> caused me to wonder why. hp-plugin downloads and installs a plugin.
> Downloading requires no root privileges but installing does, and the
> privileges have already been gained via sudo.

Without any change to password.py the plugin will install with

 sudo hp-plugin -i

So what was chrysn referring to?
 
> hp-doctor uses/usr/share/hplip/installer/distros.dat. The [debian]
> section updates and downloads packages with su -c. I changed all these
> and su_sudo to sudo. I'm using a 9.3 stretch version and also changed
> /etc/issue and /etc/debian_version to 9.1, which is the last entry on
> the versions line.

The last entry is 8.6 on the versions line and only /etc/debian_version
has to be altered to 8.6.
 
> That worked but you cannot expect a user to go through all of this.
> Devising a solution still lies in the hands of the hplip team. Whether
> they will implement one is another matter.

If you are beginning to think I am not very used to the sudo command you
would be quite right. :)

As far as I can make out, a print queue and a plugin can be set up with
sudo. hp-doctor appears to be the only utility affected by the lack of a
root password on the system. I wouldn't rate its importance on the same
level as hp-setup and hp-plugin.

hp-check appears to duplicate hp-doctor's diagnostic ability and the
Missing Required Dependencies lists *-dev programs, which are not needed
to print and scan. Others programs listed as missing are known to be on
a Debian system; libc6, for example. And why cups-bsd is required is
beyond me.

Reducing the severity accordingly.

Cheers,

Brian.


Reply to: