I am using Ubuntu 10.04 LTS - Lucid Lynx. I have a requirement to set specific group and permissions for any USB stick file/directories on mount. I have tried overwriting the udev rules. Here is what I have done:
- Created
99-test.rules
under/etc/udev/rules.d/
directory with content asSUBSYSTEMS=="usb",GROUP="tomcat6",MODE="0777",NAME="test"
sudo service udev restart
Now when I mount the usb stick and run sudo blkid
, it prints
/dev/test: UUID="002A-0AA5" TYPE="vfat"
But the ls -l /media/
gives back
drwx------ 4 admin admin 8192 1969-12-31 16:00 002A-0AA5
It seems that above rule from 99-test.rules
is getting applied but getting overwritten afterwards, thus changing group and permissions back to some default value. What is it I am missing here? Do I have to change anything else?