GithubHelp home page GithubHelp logo

Comments (9)

wfeldt avatar wfeldt commented on August 22, 2024

No, this does not require root. Can you send me an example where it matters? Run
hwinfo --gfxcard --log=foo.log. Both as root and as normal user. I'd like to have a look at these logs.

from hwinfo.

daniel-mueller avatar daniel-mueller commented on August 22, 2024

I can confirm that I have to run hwinfo with sudo on a recent installation of Leap 15.

ll /usr/sbin/ | grep hwinfo
-rwxr-xr-x 1 root root      38K 22. Apr 21:38 hwinfo

from hwinfo.

wfeldt avatar wfeldt commented on August 22, 2024

I'm using Leap 15.0 myself and it works as expected. Please provide the logs as described above,

from hwinfo.

daniel-mueller avatar daniel-mueller commented on August 22, 2024

Without sudo (no log file generated):

hwinfo --gfxcard --log=foo.txt
              
Das Programm 'hwinfo' ist verfügbar im Paket 'hwinfo', das auf ihrem System installiert ist.

Der absolute Pfad für 'hwinfo' ist '/usr/sbin/hwinfo', daher kann das Programm möglicherweise nur    von Benutzern mit Superuser-Rechten gestartet werden (z. B. root).

With sudo:
foo.txt

Any more I could provide?

from hwinfo.

wfeldt avatar wfeldt commented on August 22, 2024

Without sudo (no log file generated)

That's impossible. It must contain something. Is the directory writable?

Das Programm 'hwinfo' ist verfügbar im Paket 'hwinfo', ...

Where does this come from?

from hwinfo.

daniel-mueller avatar daniel-mueller commented on August 22, 2024

Here is what I am doing (/bin/bash this time):
screenshot_20180704_214357

On a sidenote: This is not the first time I encountered the message telling my about absolute path and permissions of an executable. So I guess it's not specific to hwinfo.

from hwinfo.

wfeldt avatar wfeldt commented on August 22, 2024

My suspicion is that there is some tool spinning out those weird 'helpful' messages but in effect
not executing hwinfo at all.

Could you try running it with full path, like /usr/sbin/hwinfo --gfxcard?

from hwinfo.

wfeldt avatar wfeldt commented on August 22, 2024

It's this command-not-found thing. If you find it as unhelpful as I, do:

sudo zypper rm command-not-found
sudo zypper al command-not-found

Or add /usr/sbin to your PATH environment variable.

from hwinfo.

daniel-mueller avatar daniel-mueller commented on August 22, 2024

Yes, seems like /usr/sbin is not in $PATH by default and zypper tries to help. Thank you!

from hwinfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.