On root:
On user:
My devfs.rules:
I have also created /usr/local/etc/devd/saned.conf:
So, how do I grant my user permission to access the device
?
Code:
root@crayon2:/var/log # scanimage -L
device `v4l:/dev/video1' is a Noname Creative WebCam Live! Motion virtual device
device `v4l:/dev/video0' is a Noname Mouse Scanner virtual device
device `epjitsu:libusb:003:003' is a FUJITSU ScanSnap S1100 scanner
On user:
Code:
g@crayon2:~ % scanimage -L
device `v4l:/dev/video1' is a Noname Creative WebCam Live! Motion virtual device
device `v4l:/dev/video0' is a Noname Mouse Scanner virtual device
My devfs.rules:
Code:
root@crayon2:/etc # cat /etc/devfs.rules
[system=10]
add path 'usb*' mode 0660 group cups
add path 'usb/*' mode 0660 group cups
add path 'ugen*' mode 0660 group cups
add path 'ugen/*' mode 0660 group cups
add path 'ad[0-9]\*' mode 0666
add path 'ada[0-9]\*' mode 0666
add path 'da[0-9]\*' mode 0666
add path 'acd[0-9]\*' mode 0666
add path 'cd[0-9]\*' mode 0666
add path 'xpt[0-9]\*' mode 0666
add path 'mmcsd[0-9]\*' mode 0666
add path 'pass[0-9]\*' mode 0666
I have also created /usr/local/etc/devd/saned.conf:
Code:
root@crayon2:/etc # cat /usr/local/etc/devd/saned.conf
notify 100 {
match "system" "USB";
match "subsystem" "INTERFACE";
match "type" "ATTACH";
match "cdev" "ugen[0-9].[0-9]";
match "vendor" "0x04c5";
match "product" "0x1200";
action "chown -L cups:saned /dev/$cdev && chmod -L 660 /dev/$cdev";
};
So, how do I grant my user permission to access the device
Code:
device `epjitsu:libusb:003:003' is a FUJITSU ScanSnap S1100 scanner