I want to install openvpn server but sudo su not working


#1

İ want to run this script under the root permission on my rpi zero w

(First step) Sudo su

(Second step) wget git.io/vpn --no-check-certificate -O openvpn-install.sh && bash openvpn-install.sh

But osmc latest version givinme error first step…


#2

If you need to get a root shell, you need to:

sudo bash

You should also consider using Brian Hornsby’s script: https://discourse.osmc.tv/t/howto-osmc-rasp-pi-as-openvpn-client


#3

Thank you for responding
Sudo bash after sudo su working?


#4

First step is

sudo bash

You don’t do sudo su.


#5

The actual way you are supposed to get a shell with sudo is:

sudo -i

This gives you the root login shell, which may not be bash. In Linux It almost always is bash, but if you want to make sure you have everything that root needs to do stuff (like correct path, etc.), don’t specify the shell, and just use -i.


#6

Guys you are life safer bash is worked… Thanks


#7

I’ve always used sudo su - interesting to see the other ways to do it.