Re: serial port (USB) permissions
- Reply: Johan Helsingius : "Re: serial port (USB) permissions"
- In reply to: Johan Helsingius : "serial port (USB) permissions"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Aug 2025 15:18:12 UTC
On Wed, Aug 6, 2025 at 4:33 PM Johan Helsingius <julf@julf.com> wrote:
> Connecting a serial adapter to the USB port works otherwise
> OK (shows up as /dev/ttyU0, but seems only root has access
> to the port. I am used to some group like "dialout" having
> access as well. Is there some setting for allowing ordinary
> users access. or do I have to do a chmod every time I connect
> the device?
***/etc/devfs.rules:
[localrules=10]
add path 'ugen*' mode 0660 group operator
add path 'usb/*' mode 0660 group operator
add path 'usb' mode 0770 group operator
***/etc/rc.conf:
devfs_system_ruleset="localrules"
+ add your user to the operator group or change the group name above
to match your needs :-)
+ # service devfs restart
all shoud work now as expected :-)
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info