sk3p71c commented on issue #25:
URL: 
https://github.com/apache/mynewt-mcumgr-cli/issues/25#issuecomment-2265707821

   I have just come across the same error two years later: "Error: [hci0]: 
can't init hci: can't down device: operation not permitted".
   
   Giving the utility the CAP_NET_ADMIN capability worked for me; once you do 
so, the user does not need to be in sudoers when running the utility. To do so, 
I did the following under debian Bookworm. You'll need to run these commands as 
root, replacing the path with your installation location.
   
       apt-get install libcap2-bin
       setcap 'cap_net_admin=ep' /home/dev/go/bin/mcumgr
   
   Could this capability be granted by the installer, or a warning given if a 
non-root user installs it? The error message alone does not make obvious what 
the solution should be, and I spent a lot of time trying to add my user to 
various groups for instance, under the assumption it was a permissions issue.
   
   Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to