| 1 |
# Filesystem Permissions |
| 2 |
|
| 3 |
When started by systemd, |
| 4 |
OpenVPN runs with a [dynamic arbitrary UID](https://0pointer.net/blog/dynamic-users-with-systemd.html). |
| 5 |
This means that it may not have access to certain files and directories if the appropriate permissions are not set. |
| 6 |
|
| 7 |
Any additional files, such as TLS keys, should reside in the `/etc/openvpn-auth-oauth2/` directory. |
| 8 |
The ownership of these files should be set to `root`, and the group should be set to `openvpn-auth-oauth2`. |
| 9 |
This setup ensures that OpenVPN has the necessary permissions to access and use these files. |
| 10 |
|
| 11 |
When installing the openvpn-auth-oauth2 Linux package, the system automatically creates the openvpn-auth-oauth2 group. |
| 12 |
This group manages access to the necessary files and directories |
| 13 |
and should be used to control the permissions of any additional files. |