Accessing serial-usb ports

Walter Dnes waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Sun Aug 13 20:24:28 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 when you plug in a USB device, and
> disappears when you unplug the device. Unfortunately, the port is created
> as owned by root and the read and wite permissions are disabled for
> ordinary users. Consequently, if you operate in user mode you have to
> become root and change these permissions every time a device is plugged
> and unplugged, or when you reboot.
> 
> This gets old fast, so we need a better solution than manual intervention.

  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> In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
--
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