How do I Grant permissions for Python to have rootless access to the HCI interface


OrangeLoon

Recommended Posts

I am running Home Assistant on Unraid 6.9.2 and one of the components requires that I grant permissions for Python to have rootless access to the HCI interface.  Being the newbie that I am, I do not know how to do that.  Specifically, the installation of the component requires this line: sudo setcap 'cap_net_raw,cap_net_admin+eip' `readlink -f \`which python3\``

 

I know the folder for python3 but I don't understand the setcap parameters. 
In unraid when I specify "sudo getcap `readlink -f \usr\bin\python3\`" I get a '>'.  

Lost past this - Might I trouble the audience for a solution please?

Edited by OrangeLoon
More details
Link to comment

Are you sure that you do not need to run the command inside the container instead of at the UnRaid level?

 

you will get better support I think if you use the forum thread specific to that container (that can be accessed via clicking on the container’s icon on the Docker tab).

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.