Kicksecure Wiki Download Docs News Support Tips Issues Contribute DONATE

Installing OpenVPN Client: Permission Denied

Hello! I’m still new to KickSecure but I’m running it inside a VM so that I can use VPN at a public library, pretty awesome. Trying to install the nice OpenVPN GUI and I’m getting permission denied for adding their key or modifying sources.list and I just don’t know why permission is denied. What can I do?

Terminal Output:

user@localhost:/etc/openvpn$ sudo curl -fsSL | gpg --dearmor > /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpg
bash: /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpg: Permission denied
(23) Failed writing body
user@localhost:/etc/openvpn$ sudo curl -fsSL$DISTRO.list >/etc/apt/sources.list.d/openvpn3.list
bash: /etc/apt/sources.list.d/openvpn3.list: Permission denied

Trying to follow this guilde:*MTY2NjczMzIzMy4xLjEuMTY2NjczMzMyMi4wLjAuMA…

This is unspecific to Kicksecure.

The same issue would happen on Debian or most other Linux distribution. This would be a case for

(bold added, space added)

See the > in your post.

That cannot work. “>” is a shell redirection and as the current user. sudo doesn’t work for shell redirection. But the current user “user” does not have permissions to write into /etc.

So these instructions are simply wrong.


  • A) Try replace > with | sudo tee, OR
  • B) Become root first using sudo su.

Also these instructions lack instructions to verify that signing key but that’s a difficult topic. See: