Re: /dev/ugen*.* modes

2011-07-04 Thread Andriy Gapon
on 04/07/2011 09:25 Zeus V Panchenko said the following:
> Hi,
> 
> how can i set /dev/ugen*.* mode and owner to allow not root to r/w
> the device?
> 
> when i plug my photo camera i have to change the mode 666 to access it
> ...
> 
> i was trying it in /etc/devfs.conf:
> 
> own ugen0.1 zeus:staff
> own ugen0.2 zeus:staff
> ...
> own ugen2.4 zeus:staff
> 
> permugen0.1 0660
> permugen0.2 0660
> ...
> permugen2.4 0660
> 
> and after device plugged in, the owner changes to toor:operator ...
> 

You have to use devfs.rules(5) for dynamically attaching devices.
-- 
Andriy Gapon
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


/dev/ugen*.* modes

2011-07-03 Thread Zeus V Panchenko
Hi,

how can i set /dev/ugen*.* mode and owner to allow not root to r/w
the device?

when i plug my photo camera i have to change the mode 666 to access it
...

i was trying it in /etc/devfs.conf:

own ugen0.1 zeus:staff
own ugen0.2 zeus:staff
...
own ugen2.4 zeus:staff

permugen0.1 0660
permugen0.2 0660
...
permugen2.4 0660

and after device plugged in, the owner changes to toor:operator ...

-- 
Zeus V. Panchenko
JID:z...@gnu.org.ua GMT+2 (EET)
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"