Results 1 to 3 of 3

Thread: How to run application without sudo? In my case ProtonVPN

  1. Back To Top    #1
    Contributing Member Spectrum's Avatar
    Join Date
    Dec 2009
    Posts
    97
    Threads
    39
    Local Date
    May 29th 2020
    Local Time
    03:36 AM

    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. Back To Top    #2
    Kubuntu as a Second Language
    Join Date
    Apr 2008
    Location
    Auckland, New Zealand
    Posts
    1,884
    Threads
    68
    Local Date
    May 29th 2020
    Local Time
    03:36 PM
    (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

  3. Back To Top    #3
    Contributing Member Spectrum's Avatar
    Join Date
    Dec 2009
    Posts
    97
    Threads
    39
    Local Date
    May 29th 2020
    Local Time
    03:36 AM
    Quote 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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •