Re: serial port (USB) permissions
- In reply to: Tomek CEDRO : "Re: serial port (USB) permissions"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Aug 2025 07:10:45 UTC
Thanks! Julf On 8/7/25 15:18, Tomek CEDRO wrote: > 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 :-) >