Ubuntu – How to restart openvpn service (or any service) running under “nobody” user

openvpnserverservices

On my Ubuntu 16.04 server, I have the OpenVPN service running as the user nobody. How can I restart the service or reload the config file for the service using, for instance, systemctl?

An openvpn process is running, but I don't know how to access it.

310 nobody    20   0   44440   3184   1968 S  0.0  0.3   1263:30 openvpn

The command su nobody does not work because no password is set. Is there an alternative?

Best Answer

Try this, I've noticed that restart doesn't work for me.

sudo systemctl stop openvpn@server
sudo systemctl enable openvpn@server.service
sudo systemctl start openvpn@server