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: https://support.nordvpn.com/hc/en-us/articles/206927749-Linux-Ubuntu-14-04-setup
- 1. Login to your admin account;
- 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;
- 3. Open the US311_UDP.sh file and enter these two lines:
sudo openvpn /etc/openvpn/us311.nordvpn.com.udp1194.ovpn
Save and close the file;
- 4. Open Terminal (Ctrl + Alt + T) and run sudo visudo command. Afterwards, you will be prompted your administrator password, please enter it.
It will open the /etc/sudoers.tmp file as shown below.
- 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/us311.nordvpn.com.udp1194.ovpn
- 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 press Enter to complete the changes;
- 7. Access your standard user account;
- 8. Open Terminal (Ctrl + Alt + T) and runcd /home/blue_mountain/Documents command;
- 9. Now you can use sh US311_UDP.sh command to use previously created script to connect to VPN, though you will be required to enter your NordVPN credentials;
- 10. Wait for the VPN connection to be established. It is indicated by the Initialization Sequence Completed message.