On 06/03/15 22:28, shirish शिरीष wrote:
> Package: hwinfo
> Version: 21.12-1
> Severity: normal
> 
> Dear Maintainer,
> hwinfo needs sudo/superuser/root privileges.

Hi Shirish,
it does not, it just gives you more information if run with them.

> 
> $ sudo which hwinfo
> [sudo] password for shirish:
> /usr/sbin/hwinfo

/usr/sbin is for "Non-essential standard system binaries" and "This
directory contains any non-essential binaries used exclusively by the
system administrator" [1]. Although, you may argue that hwinfo can be
run without root privileges, its full functionality is only available
when you are root.

> 
> Why does it need sudo or superuser/root privileges. AFAI understand
> the tool/package does similar work/utility as lspci or any other tool
> which shows what parts of a system are there to the user.

My guess is that some hardware information is restricted to root.

> 
> The ideal part would be it would be able to probe all the hardware,
> generate a report and write it in the user's home directory.

By default hwinfo prints what it probed to the standard output. You
can redirect it to whatever location you like.

> 
> Looking forward to know.
> 

I'd like to know what your precise problem. Is it that you like to see
hwinfo in /usr/bin/hwinfo? If yes, then I'd argue that it shouldn't be
there, because (1) it will signal that hwinfo does *not* need root
privileges to run without trimmed functionality and this is not the
case, and (2) hwinfo has always been in /usr/sbin and so it could
break uses that depend on that.

Cheers,
Tomasz

[1] 
http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html#USRSBINNONESSENTIALSTANDARDSYSTEMBI

Attachment: signature.asc
Description: Digital signature

Reply via email to