On Mon, 2009-11-16 at 16:52 +1100, Russell Shaw wrote:
> Hi,
> I just got a usb AVRISP. What permission should i fix? :
> 
> strace avrdude -p m8535 -c avrispmkII -P usb -v -U flash:w:proj.hex
> 
>    open("/dev/bus/usb/007/001", O_RDWR)    = -1 EACCES (Permission denied)
>    ...
> 
> dev/bus/usb/007/001 exists, but i don't know what to do about the
> permissions in this part of the system (debian/unstable).
> 
> ls -l /dev/bus/usb/007/001
>    crw-rw-r-- 1 root root 189, 768 2009-11-16 16:15 /dev/bus/usb/007/001
> 
> 
> Avrdude 5.8
> 
> 
I created a new group called "isp" then added the following lines to
my /etc/udev/rules.d/91-permissions.rules 

# AvrISP
SUBSYSTEM=="usb_device",        GROUP="isp", \
        ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2104"

With that any member of the group isp can access the avrisp2.


-- 
Ormund Williams
OrmLab LLC



_______________________________________________
avrdude-dev mailing list
avrdude-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to