LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Setting dev privileges after hotplugging (http://www.linuxquestions.org/questions/linux-hardware-18/setting-dev-privileges-after-hotplugging-439986/)

Kharmaslaw 04-29-2006 08:39 AM

Setting dev privileges after hotplugging
 
Hello,

I have a Nokia Communicator and after I plug it in with the serial cable, Ubuntu hotplugs it automatically. The problem is that when it creates /dev/ttyACM0 which is used by the driver, it sets the privileges so that only root can access it. I would like to have every user access (with Gnokii), so I have to chmod it as root every time the phone is connected. I have to do this every time when the phone is removed from the dock, since /dev/ttyACM0 gets deleted.

How do I set it so that /dev/ttyACM0 privileges are automatically set when the phone is hotplugged?

Thanks,

K

maroonbaboon 04-29-2006 10:31 AM

If the device file is created dynamically by udev it looks like the access mode can be set in the udev rules file /etc/udev/rules.d/udev.rules.

The man page for the udev.conf file also mentions /etc/udev/permissions.d/. I'm not sure what additional features that provides.

Kharmaslaw 04-29-2006 11:34 AM

Thanks! That worked. I added a rule to /etc/udev/permissions.rules.

K


All times are GMT -5. The time now is 09:30 PM.