1
General Discussion / [FIXED]Re: os-nut plugin permissions issue
« on: November 25, 2020, 04:31:21 pm »
I fixed
/etc/devfs.conf
/etc/devfs.rules
/etc/rc.conf
Restart service to read new config
Check permissions
Now it should work!
/etc/devfs.conf
Code: [Select]
perm ugen0.3 0770
own ugen0.3 uucp:wheel
/etc/devfs.rules
Code: [Select]
[nut_usb=10]
add path 'ugen0.3' group wheel user uucp mode 0770
/etc/rc.conf
Code: [Select]
devfs_system_ruleset="nut_usb"
Restart service to read new config
Code: [Select]
/etc/rc.d/devfs restart
Check permissions
Code: [Select]
ls -l /dev/ug*
Output:Code: [Select]
lrwxr-xr-x 1 root wheel 9 Nov 18 11:53 /dev/ugen0.1 -> usb/0.1.0
lrwxr-xr-x 1 root wheel 9 Nov 18 11:53 /dev/ugen0.2 -> usb/0.2.0
lrwxrwx--- 1 uucp wheel 9 Nov 18 11:53 /dev/ugen0.3 -> usb/0.3.0
lrwxr-xr-x 1 root wheel 9 Nov 18 11:53 /dev/ugen0.4 -> usb/0.4.0
Now it should work!