Auto-starting a GUI application that requires sudo
Posted
by
nanostuff
on Ask Ubuntu
See other posts from Ask Ubuntu
or by nanostuff
Published on 2014-08-21T11:57:57Z
Indexed on
2014/08/21
16:29 UTC
Read the original article
Hit count: 193
Question:
I need to auto-start a GUI application that requires sudo.
I know I need to edit the sudoers file with:
sudo visudo
However, I don't know what to write in the file.
What I already tried:
sudo visudo
and then added the following:
nanostuff ALL = NOPASSWD: /usr/lib/AirVPN/AirVPN.exe
I also tried with:
nanostuff ALL = NOPASSWD /usr/bin/X11/airvpn
and
nanostuff ALL = NOPASSWD /usr/bin/airvpn
None of those worked.
By doing:
ps aux | grep airvpn
I get the following output:
nanostuff 6805 0.2 0.4 483520 17384 ? Sl 17:13 0:01 /usr/bin/gksu -u root -m AirVPN Client needs administrative privileges. Please enter your password. mono /usr/lib/AirVPN/AirVPN.exe path=/home/nanostuff/.airvpn
root 6806 0.0 0.0 78604 2392 ? Ss 17:13 0:00 /usr/bin/sudo -H -S -p GNOME_SUDO_PASS -u root -- mono /usr/lib/AirVPN/AirVPN.exe path=/home/nanostuff/.airvpn
root 6808 3.2 2.0 1257532 83032 ? Sl 17:13 0:12 mono /usr/lib/AirVPN/AirVPN.exe path=/home/nanostuff/.airvpn
root 6832 0.0 0.0 22652 3336 ? S 17:14 0:00 /usr/sbin/openvpn --config /home/nanostuff/.airvpn/384ef91f85df5ea2abc88c7416b95bbdf2bc4299edd2850614d4e343ba721ae3.tmp.ovpn
nanostuff 6951 0.0 0.0 18932 932 pts/2 S+ 17:20 0:00 grep --color=auto airvpn
Additional info:
- OS: Ubuntu 14.04 64bits
- Application: It's a VPN client
© Ask Ubuntu or respective owner