Jump to content


Photo

How To Autostart AirVPN As Root With No Password (Solved)

autostart sudo gksu eddie airvpn linux root password

  • Please log in to reply
2 replies to this topic

#1 Zensen

Zensen

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 26 November 2016 - 07:06 PM

If you're running AirVPN on Linux you probably don't want to have to type your sudo password in each time it runs. Why? If you're auto-starting it, you want your network lock and VPN connection to happen as soon as you login. Here's what I did for Ubuntu (Actually Kubuntu)...

 

  1. Install gksu (sudo apt install gksu)
  2. Add AirVPN to your autostart list and for command use gksudo /usr/bin/airvpn
  3. Run sudo nano /usr/share/applications/AirVPN.desktop and change the command to gksudo /usr/bin/airvpn
  4. Edit the AirVPN entry in your application launcher and change the command to gksudo /usr/bin/airvpn
  5. Run sudo visudo and add the line %airvpn ALL=(ALL:ALL) NOPASSWD: /usr/bin/airvpn after all other rules (Press Ctrl+x and then Enter to exit and save).
  6. Run sudo groupadd airvpn
  7. Run sudo usermod -a -G airvpn user replacing "user" with your account's username.

 

You're done. The next time you login (Or start it any any other way) AirVPN will start without entering any password.

 

Note: Your AirVPN settings will be back to default after doing this. Don't worry, just set them again and they'll save.



#2 Staff

Staff

    Advanced Member

  • Staff
  • PipPipPip
  • 7013 posts

Posted 28 November 2016 - 11:42 PM

We very strongly recommend to not apply this solution for security reasons.

 

Kind regards



#3 Zensen

Zensen

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 15 January 2017 - 04:48 AM

We very strongly recommend to not apply this solution for security reasons.

 

Kind regards

 

 

Still useful for those who may want to, this solution could use some extra security. The application has to be run as su to begin with so there's no more security concern there in that regard. Of course it would be nice to be able to restrict the alteration of eddie client's files. I'm not sure if some solution exists to restrict file modifications based on hashing. I'd be surprised if there wasn't. Even Windows does this and will not grant admin privs automatically to a file that has been modified since it was whitelisted.

 

I'll search for such a solution on Linux. There must be some way.







Similar Topics Collapse


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Servers online. Online Sessions: 13517 - BW: 36744 Mbit/sYour IP: 62.210.77.51Guest Access.