Emanem / linux-hunter

Prototype MH:W companion app for Linux, inspired by SmartHunter
GNU General Public License v3.0
26 stars 9 forks source link

Is running as root really required? #12

Closed igo95862 closed 1 year ago

igo95862 commented 3 years ago

For me it runs fine without root. (on Arch Linux)

Unforutnately looks like CAPCOM and/or wine/Proton are protecting memory, hence this requires sudo access when running.

Highly doubtful.

The most likely reason it does not want to run for you as root are AppArmor or SELinux. (depending if you are on Ubuntu or Fedora)

Try setting the CAP_SYS_PTRACE capability on the linux-hunter executable: sudo setcap cap_sys_ptrace=ep ./linux-hunter

Emanem commented 3 years ago

Try this - and if this works, then please add to the README.md.

igo95862 commented 3 years ago

Try this - and if this works, then please add to the README.md.

I can't test because it works without root straight away for me.

I would modify README to tell people use root or capability only if it does not work out of box.

Emanem commented 3 years ago

Ok then, please go ahead and submit a pull request.