Custom SNAP access to USB/Serial port "/dev/ttyACM0"

Hello,

I need to access serial port using a custom snap without activating it via Node-RED to connect RS485 device with Serial to USB Adapter. As I understand, currently it's not possible without root privileges and in that case we are not allowed to use it in real project. Is it planned to add such rights in the future without granting root access to the device?ย 

Thank you for your support!

ย 

Best Regards,

Alex

ย 

Best reply by bostroemc

Just one more comment:ย  As far as I know, daemons ALWAYS have root access within their area of confinement.ย  (See, for example, comments by ogra here.)ย  If you have configured your app to run as a daemon - the typcial use-case for ctrlX CORE - then access generally is a question of broadening the area of confinement via the plugs mechanism (i.e. setting up the plugs correctly) and never one of "sudo".

View original
1
5 replies