I am installing openvpn and in one of the first steps I have to create the following directory: /etc/openvpn/certs with the mkdir command. However I always get the error: cannot create the directory, permission denied.

I tried as well to do it with the graphical interface (file manager) with the same result.

I am using the raspbian system with standard user (pi).

Many thanks for your help,


  • 1
    Have you tried using sudo in front of the command?
    – tycrek
    Commented Jul 2, 2016 at 14:46

1 Answer 1


Does pi have write permissions in /etc/openvpn folder? First guide I found says to do that with root permissions so I'd rather suggest doing 'sudo mkdir'.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.