ITADN

Failed to execute /usr/bin/openvpn-auth-oauth2: Permission denied

#695Closedjoanandk 创建于 2025-12-12
🐞 bug
J
joanandkcommented
### Current Behavior The init file to start the service provided does not work on Debian 13. I have a patch, but am unsure if there is any downside to what I have done. Please check the patch and apply if it is ok. ### Expected Behavior [0001-Adding-libraries-for-the-service-to-start-on-Debian-.patch](https://github.com/user-attachments/files/24121375/0001-Adding-libraries-for-the-service-to-start-on-Debian-.patch) The service to start. Adding two libraries to ExecPaths resolves the issue: ` NoExecPaths=/` `-ExecPaths=/usr/bin/openvpn-auth-oauth2 /usr/bin/env /usr/bin/kill` `+ExecPaths=/usr/bin/openvpn-auth-oauth2 /usr/bin/env /usr/bin/kill /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 ExecReload=/usr/bin/env kill -USR1 $MAINPID` I have added the patch. ### Steps To Reproduce ```Markdown 1. Debian 13 (Trixie) 2. Does not matter what config 3. Run systemctl start openvpn-auth-oauth2 4. ` ... (h-oauth2)[...]: openvpn-auth-oauth2.service: Failed to execute /usr/bin/openvpn-auth-oauth2: Permission denied ... (h-oauth2)[...]: openvpn-auth-oauth2.service: Failed at step EXEC spawning /usr/bin/openvpn-auth-oauth2: Permission denied ... systemd[1]: openvpn-auth-oauth2.service: Main process exited, code=exited, status=203/EXEC ` ``` ### Environment - openvpn-auth-oauth2 Version: 1.26.4 - OpenVPN Server Version: 2.7_rc3 - Server OS: Debian 13 - OpenVPN Client (flavor, OS): Any - OIDC Provider: Microsoft ### openvpn-auth-oauth2 logs ```shell . ``` ### openvpn server logs ```shell ``` ### Anything else? _No response_ ### Preflight Checklist - [x] I could not find a solution in the [documentation](https://github.com/jkroepke/openvpn-auth-oauth2/wiki), the [FAQ](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/FAQ), the existing issues or discussions.
关闭于 2025-12-12 3 条评论