Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
jardag@precise-GiB:~$ lsusb
Bus 001 Device 006: ID 15ba:002a Olimex Ltd. ARM-USB-TINY-H JTAG interface
jardag@precise-GiB:~$ cd /dev/bus/usb
crw-rw-r-- 1 root root 189, 0 Apr  4 21:13 001
crw-rw-r-- 1 root root 189, 5 Apr  4 21:13 006

jardag@precise-GiB:/dev/bus/usb/001$ cat /etc/udev/rules.d/40*
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0x15ba", ATTRS{idProduct}=="0x002a", MODE="0660", GROUP="lp"

Why the mode and group of the 006 did not change ?

share|improve this question

It is possible that your rule is overridden by a late rule.

~$ /lib/udev/rules.d/40-flashrom.rules

ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="002a", MODE="664", GROUP="plugdev"

Try rename your rule to start with number higher then 90-*

share|improve this answer

Three yrs later but still...

You are trying to use a hot-swap capable NTFS-drive (USB) with specific rwx privilege. For that I believe, you should set a udev rule so that it actually mounts yr volume with said permissions.

The rule:

SUBSYSTEMS=="usb",ATTRS{idVendor}=="0x15ba",ATTRS{idProduct}=="0x002a",ACTION=="add",RUN+="/bin/mkdir -p /media/arm_usbtiny", RUN+="/bin/mount -o relatime,utf8,gid=7,umask=0002 /dev/%k /media/arm_usbtiny"

Here yr drive gets mounted at /media/arm_usbtiny. Change that to whatever you like.
Determine what numeric gid goes for your lp group. On my Ubuntu 14.04 boxes, it is 7by default. It may be different on a different release. To check that in terminal (CTRL-ALT+T):

$ awk -F\: '/lp/ {print "Group " $1 " has gid=" $3}' /etc/group 

In the udev rule, umask=0002 is equivalent to MODE=0664

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.