Announcement

Collapse
No announcement yet.

How to run application without sudo? In my case ProtonVPN

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] How to run application without sudo? In my case ProtonVPN

    Hi! I want to be able to run ProtonVPN from a startup script in order to auto-connect to VPN upon startup.

    ProtonVPN requires sudo rights.

    I've tried to add this to my sudoers in an attempt to let it run without sudo:

    Code:
    spectrum spectrum-P55-USB3 = (root) NOPASSWD: /usr/local/bin/protonvpn
    It doesn't seem to work:

    Code:
    spectrum@spectrum-P55-USB3:~$ /usr/local/bin/protonvpn c -f
    [!] The program was not executed as root.
    [!] Please run as root.
    Am I doing sudoers wrong?

    Thanks in advance!

    #2
    (A mistake I made is that) if you use a sudoers file to allow running a command as root without entering your password, you still need to prefix it with "sudo"; it just doesn't ask for the password. Did you leave in the "sudo"?
    Regards, John Little

    Comment


      #3
      Originally posted by jlittle View Post
      (A mistake I made is that) if you use a sudoers file to allow running a command as root without entering your password, you still need to prefix it with "sudo"; it just doesn't ask for the password. Did you leave in the "sudo"?
      Woo! That does it. Thanks a lot, man!

      Comment

      Working...
      X