I wrote a module that needs elevated privileges.
This is an excerpt from my setup.py:
...
entry_points={
"console_scripts": [
"wlan-monitor = wlan_monitor.wlan_monitor:main"
],
}
...
Installed with pip3 install .
the wlan-monitor
command is only available for the current user. sudo wlan-monitor
is not available.
Since installing modules with sudo is discouraged, I'm searching for an alternative, where I can install the module as normal user but start the program with elevated privileges.