First time here? Check out the FAQ!

Revision history  [back]

We faced a similar challenge--except that we needed to use Wing in remote mode. We need some scripts to execute with sudo on the remote host.

We made a copy of the python3 executable file called "python3_privileged". Then we used setcap to set the capabilities we needed on python3_priviledged.

sudo setcap CAP_SYS_ADMIN,CAP_dac_override=eip \~/python3_privileged

adding the capabilities that you need. Then set Wing's project to use python3_privileged instead of python3. It's a bit of a pain to set up, and it requires some maintenance as you update Python.

We faced a similar challenge--except that we needed to use Wing in remote mode. We need some scripts to execute with sudo on the remote host.

We made a copy of the python3 executable file called "python3_privileged". Then we used setcap to set the capabilities we needed on python3_priviledged.

sudo setcap CAP_SYS_ADMIN,CAP_dac_override=eip \~/python3_privileged

adding the capabilities that you need. Then set Wing's project to use python3_privileged instead of python3. It's a bit of a pain to set up, and it requires some maintenance as you update Python.python3.