FS#12005 - Change permissions for /dev/ttyUSB* in udev to root:users or root:tty

Attached to Project: Arch Linux
Opened by Carl (Xinix) - Wednesday, 05 November 2008, 17:56 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 09 November 2008, 08:38 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture i686
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When plugging in a GPS device (Garmin), it is correctly recognized and udev creates and assigns /dev/ttyUSB0. However, with a normal user account, the port cannot be used since it is created with root:root permissions. I need to chmod 666 /dev/ttyUSB0 in order to be able to use it. When unplugging the GPS the port is deleted, so this solution does not stick.

Please change the udev rules so that /dev/ttyUSB* ports can be used by normal user accounts (or by users in group tty if you see security issues, which I do not by the way).

Additional info:
* package version(s)
core/udev 130-1

* config and/or log files etc.
/etc/udev/rules.d/

Steps to reproduce:
- install Viking (from AUR) and gpsbabel
- plugin Garmin GPS
- launch Viking, add GPS layer and download track information from GPS (on /dev/ttyUSB0)
- no data downloaded, message: 'Done. GPS device N/A'.
- as root: chmod 666 /dev/ttyUSB0
- download track information again: success.


This task depends upon

Closed by  Tobias Powalowski (tpowa)
Sunday, 09 November 2008, 08:38 GMT
Reason for closing:  Not a bug
Comment by Tobias Powalowski (tpowa) - Saturday, 08 November 2008, 09:02 GMT
How about writing a custom udev rule for that special case?
Comment by Carl (Xinix) - Saturday, 08 November 2008, 10:12 GMT
Yes, well that is possible. But A: I did not manage to get it to work despite consulting the wiki and googling for it and B: it might just as well work correctly out of the box. In my opinion KISS does not equal DIY.
Comment by Tobias Powalowski (tpowa) - Sunday, 09 November 2008, 08:37 GMT
You need to find a unique feature of your device and then you can set group and permissions easily.
Example id check:
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0101", MODE="0664"
Example device:
KERNEL=="ttyUSB0", MODE="0666"

Loading...