Configuring Linux Ubuntu setup (Standard User)

These are the instructions to connect non-administrative account (newuser in this example) to VPN using Linux. The instructions were made using Ubuntu 16.04 LTS and connecting to US #311 server using UDP protocol. Before following these instructions, please make sure at least 1-7 steps of our Linux tutorial has already been completed.

1. Login to your admin account:

Img01.png

2. Create a new file and name it US311_UDP.sh or however you prefer. For the sake of convenience we will create the file in ~/Documents/ folder;

Img02.png

3. Open the US311_UDP.sh file and enter these two lines:

#!/bin/bash
sudo openvpn /etc/openvpn/ovpn_udp/us311.nordvpn.com.udp.ovpn


Save and close the file;

4. Open Terminal (Ctrl + Alt + T) and run sudovisudo command. Afterwards, you will be prompted your administrator password, please enter it.

Img04_1.png

It will open the /etc/sudoers.tmp file as shown below.

Img04_2.png
 

5. Using arrow keys navigate to the #Members of the admin group may gain root privileges and below the %admin ALL=(ALL) ALL entry type these three lines:

newuser ALL=NOPASSWD: /home/blue_mountain/Documents/US311_UDP.sh
newuser ALL=NOPASSWD: /usr/sbin/openvpn
newuser ALL=NOPASSWD: /etc/openvpn/ovpn_udp/us311.nordvpn.com.udp.ovpn


Img05.png

6. Press Ctrl + X to close the file. Shortly afterwards you will be asked to press Y in order to save changes you have made. You will be required to press Enter to complete the changes;

7. Access your standard user account:

Img07.png

8. Open Terminal (Ctrl + Alt + T) and run cd /home/blue_mountain/Documents command:

Img08.png

9. Now you can use sh US311_UDP.sh command to use the previously created script to connect to VPN, though you will be required to enter your NordVPN credentials;

Img09.png

10. Wait for the VPN connection to be established. It is indicated by the Initialization Sequence Completed message.

Img10.png

War dieser Artikel hilfreich?

Hast du immer noch Probleme?

  • Live-Chat

  • E-Mail-Formular

Durch Klicken auf „Mit dem Support chatten“ stimmen Sie unseren Nutzungsbedingungen zu und erkennen unsere Datenschutzerklärung an. Die Funktionalität des Chats basiert auf Cookies. Wenn du den Chat startest, erklärst du dich mit deren Verwendung einverstanden. Mehr dazu erfährst du in unseren Cookie-Richtlinien.