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 https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub | 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 https://swupdate.openvpn.net/community/openvpn3/repos/openvpn3-$DISTRO.list >/etc/apt/sources.list.d/openvpn3.list
bash: /etc/apt/sources.list.d/openvpn3.list: Permission denied
user@localhost:/etc/openvpn$

Trying to follow this guilde:
https://community.openvpn.net/openvpn/wiki/OpenVPN3Linux?_ga=2.125702925.623086276.1666733252-1528184479.1666733232&_gl=11mn6wlq_gaMTUyODE4NDQ3OS4xNjY2NzMzMjMy_ga_SPGM8Y8Y79*MTY2NjczMzIzMy4xLjEuMTY2NjczMzMyMi4wLjAuMA…

This is unspecific to Kicksecure.

The same issue would happen on Debian or most other Linux distribution. This would be a case for https://www.kicksecure.com/wiki/Free_Support_Principle

(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.

Options:

  • 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: