When trying to run gpsbabel as non-root, an udev rule has to be created
as documented in /usr/share/doc/gpsbabel/README.Debian
That file says to add the file
/etc/udev/rules.d/51-garmin.rules
with the content
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666"
This is the same as written at the gpsbabel homepage at
http://www.gpsbabel.org/os/Linux_Hotplug.html
However, this rule seems to be somehow overwritten by an additional rule
coming later (I haven't figured out which rule exactly). So if I use the
filename /etc/udev/rules.d/51-garmin.rules I cannot use the Garmin
device as root but if I use /etc/udev/rules.d/zz_garmin.rules it works.
The renaming of that file also solved this issue a friend of mine had
with his Debian Testing system.
I originally wantet to report this to the author of gpsbabel so that he
can update the homepage but I couldn't find an email address.
A second point that might be important in the future: SYSFS is
deprecated, therefore it should be replaced by ATTR or ATTRS (I'm not
sure which one to take ;-) )
Best regards,
Philipp
Does this bug still apply for recent versions of gpsbabel in Debian testing? I'm trying to help out with some cleaning of old bugs. Ciao, steko
Hi, if you actually want to help, you should figure that out by yourself. In case you really want to ask the bug submitter to check if the bug exists, you should actually send the mail to him (look into the bugs.debian.org documentation!). Also not using any Subject at all is not really helpful. I really appreciate help, but then you should actually do something useful instead of putting more work on my shoulders by figuring out what is going on. So why don't you install the package, see if the bug is still valid and come up with a patch which actually brings that file into a proper shape? Cheers, Bernd
Il giorno Thu, 18/08/2011 alle 21.21 +0200, Bernd Zeimetz ha scritto: Hi, that was my aim indeed, apologies for doing it wrong. I will go back to the documentation before trying again. Thanks, steko
I used Debian Testing with today's updates (the gpsbabel package version
is 1.4.2-3). The gpsbabel documentation
/usr/share/doc/gpsbabel/README.Debian
still says that you have to create an udev rule with the name
/etc/udev/rules.d/51-garmin.rules
and the content
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666"
On my system it only gets applied when I rename 51-garmin.rules to e.g.
zz_garmin.rules
To find out what's going on I removed all files in
/etc/udev/rules.d/
just created 51-garmin.rules, executed
/etc/init.d/udev reload
and plugged in the Garmin. It was created as
crw-rw-r-- 1 root root 189, 266 22. Aug 22:54 011
in
/dev/bus/usb/003
Therefore, only root could write to the device - that's not what the
rule says. When I renamed the (only) rule below /etc/udev/rules.d/ to
z51-garmin.rules
disconnected, the Garmin, executed
/etc/init.d/udev reload
and plugged it in again, the Garmin device appeared as
crw-rw-rw- 1 root root 189, 267 22. Aug 22:54 012
as it should be.
So my suggestion is to change the file
/usr/share/doc/gpsbabel/README.Debian
philipp@rigel:/tmp$ diff -u README.Debian.orig README.Debian.new
--- README.Debian.orig 2011-08-22 23:04:03.000000000 +0200
+++ README.Debian.new 2011-08-22 23:05:04.000000000 +0200
@@ -14,7 +14,7 @@
blacklist garmin_gps
To allow the USB devices to be read and written by a non-privileged
-user, create a named /etc/udev/rules.d/51-garmin.rules with the following
+user, create a named /etc/udev/rules.d/z51-garmin.rules with the following
contents: