Permissions denied with openvpn client in Ubuntu 25.04:


Starting with Ubuntu 25.04, the apparmor security feature will block openvpn config files from running in non-standard places like /opt.
You could allow the non-standard place in a whitelist or disable apparmor.
both are not recommended, the whitelist usually still does not work even after permitting the location, along with disabling apparmor is very dangerous.

Just store the ovpn file under the default location of: /etc/openvpn/client
And then run the ovpn by: sudo openvpn /etc/openvpn/client/my-cert.ovpn

Sources: Date: November 17th 2025


Back

© 2019 to 2025 Branden Gilfoil & © up to 2025 for respective owners.