Installed a program woeusb with make install but cant run it with sudo

asked 2017-08-11 17:26:16 +0000

Hi all,

I have installed woeusb successfully using make install, the binary is installed in /usr/bin/local. The program launches if I run it but it does not really work since it needs root access. So when I run sudo woeusb it throws:

sudo: woeusb: command not found

Why is woeusb not in sudo's PATH? First thing I tried is add it to securepath in /etc/sudoers but then I get other variables not set (in this case SESSIONMANAGER), which I also tried to add them to keep_env but still getting other errors (Debug: Failed to connect to session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed).

After adding secure_path to /usr/local/bin I already can use the program through command line, but the GUI interface is still failing to find its binary friend: /bin/sh: woeusb: command not found

Adding PATH to keep_env does not resolve this.

Thanks for clarifying a little bit

edit retag flag offensive close merge delete

Comments

How are you starting the GUI interface?

Samuel Sieb ( 2017-08-11 20:23:50 +0000 )edit

woeusbgui is the binary with GUI. It then calls woeusb binary.

revolucion09 ( 2017-08-12 03:45:07 +0000 )edit