ProblemFollowing Secure Communications with OpenVPN tutorial
. /etc/openvpn/easy-rsa/2.0/vars
I do that (as a regular user) and get the expected outcome. However, when I go to the next step
. /etc/openvpn/easy-rsa/2.0/clean-all
I get unexpected outcome, I am told the script can not create the needed directory. If I run the command as:
sudo /etc/openvpn/easy-rsa/2.0/clean-all
I am told I need to source the vars file first - seems like I had just done that!
I am running as a regular user and so try with sudo - the error is that the "." is 'command not found'. What is that "." at the beginning of the line anyway? How do you get around it?
thomas
3 Replies
sudo su root
Not sure what the difference is between being root and using sudo in this case … other than one worked and one didn't!
thomas
dot "."
You ran into some problems because a sudo environment doesn't inherit all the settings of the invoking environment. You can run sudo su - to get a root shell, then execute your commands as root, and type exit to return to your original user. (Which is mostly what you did.)
Thanks for the clear explanation. I have been using Linux for 8 or so years and had not run across that.
thomas