Accessing serial-usb ports: Solved

phiscock-g851W1bGYuGnS0EtXVNi6w at public.gmane.org phiscock-g851W1bGYuGnS0EtXVNi6w at public.gmane.org
Sun Aug 13 22:42:56 UTC 2006


>> On Fri, Aug 11, 2006 at 11:31:13PM -0400, phiscock-g851W1bGYuGnS0EtXVNi6w at public.gmane.org wrote
>>
>>> A Linux serial-usb port is created as owned by root and you have to
>>> become root and change these permissions every time a device is plugged
>>> and unplugged, or when you reboot. We need a better solution.
>
>>   The *DEFAULT* udev behaviour is to create /dev entries owned by root
>> and assigned permissions 660.  You want to change the default for one or
>> more devices.  Check out the udev rule-writing information at...
>> http://www.reactivated.net/writing_udev_rules.html and specifically the
>> section "Controlling permissions and ownership", where you can change
>> any/all of owner, group, and access permissions.
>
>  Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org>
>
It turns out to be quite simple.

The fix is to edit the file
               /etc/udev/permissions.d/50-udev.permissions
so that the USB ports ttyUSB* start up with permissions 666 rather than 660.

Thank-you, Walter, for pointing me in that direction.

-- 
Peter Hiscocks
Syscomp Electronic Design Limited, Toronto
http://www.syscompdesign.com
USB Oscilloscope and Waveform Generator
647-839-0325

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list