Hi guys,
my OpenVPN server (verison 2.4.3) is running on a openSUSE Leap 15.1 server.
Today I have implemented Google Authentication - it works great.
My problem is, that the openvpn process runs as user root.
=> ps aux | grep vpn
openvpn 30964 0.0 0.1 51376 5800 ? Ss 18:53 0:00 /usr/sbin/openvpn --cd /etc/openvpn --daemon --config my-server.conf --askpass /etc/xxxxxxxx/secret.pw
root 30965 0.0 0.0 50952 748 ? S 18:53 0:00 /usr/sbin/openvpn --cd /etc/openvpn --daemon --config my-server.conf --askpass /etc/xxxxxxxx/secret.pw
If I remove the line
plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so openvpn in the server.conf and restart the OpenVPN server, I have just one process (with the correct user from the server.conf file). The plugin line is the only thing I have changed in the server.conf.
=> ps aux | grep vpn without the plugin line
openvpn 7850 0.7 0.1 45000 5916 ? Ss 19:10 0:00 /usr/sbin/openvpn --cd /etc/openvpn --daemon --config my-server.conf --askpass /etc/xxxxxxxx/secret.pw
This is the "/etc/pam.d/openvpn" file:
auth required /lib64/security/pam_google_authenticator.so secret=/etc/openvpn/google-auth/${USER} user=google-user forward_pass
account include common-account
Thanks for your help! 🙂
Christus