Hello. I have some Python script to get an OpenVpn file from VpnGate. Note that it starts OpenVPN by using bash (kind of external command in Python) inside to create a connection. I should say it works fine. But I would like to do it without entering any password to be able to engage a hotkey.
I'm Linux user (and intensely apologizing for that) who uses doas as main utility to execute command as root. I've built doas with "persist" support as well. Meanwhile, the reboot, for instance, is works in right way.
[ permit nopass gentoo as root cmd reboot ] (I don't know how to arrange any code here with correct displaying)
For OpenVpn I thought it's correct to set it up like
[ permit nopass gentoo as root cmd /usr/sbin/openvpn ] or on emergency [ permit nopass gentoo as root cmd /usr/bin/python3.9 ] (for Python script needs, according to my logic)
But all of this still requires the password. Thanks in advance.
I'm Linux user (and intensely apologizing for that) who uses doas as main utility to execute command as root. I've built doas with "persist" support as well. Meanwhile, the reboot, for instance, is works in right way.
[ permit nopass gentoo as root cmd reboot ] (I don't know how to arrange any code here with correct displaying)
For OpenVpn I thought it's correct to set it up like
[ permit nopass gentoo as root cmd /usr/sbin/openvpn ] or on emergency [ permit nopass gentoo as root cmd /usr/bin/python3.9 ] (for Python script needs, according to my logic)
But all of this still requires the password. Thanks in advance.