OrangeLoon Posted July 20, 2021 Share Posted July 20, 2021 (edited) 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 July 21, 2021 by OrangeLoon More details Quote Link to comment
OrangeLoon Posted July 21, 2021 Author Share Posted July 21, 2021 I found out the single quote character is incorrect. Once corrected I get the following error: sudo setcap 'cap_net_raw,cap_net_admin+eip' 'readlink -f /usr/bin/python3' sudo: setcap: command not found Quote Link to comment
itimpi Posted July 21, 2021 Share Posted July 21, 2021 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). Quote Link to comment
OrangeLoon Posted July 21, 2021 Author Share Posted July 21, 2021 Not sure but great advice - learning! Thanks Quote Link to comment
Recommended Posts
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.