LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-18-2012, 01:25 AM   #1
aluchko
Member
 
Registered: Mar 2004
Location: Edmonton, AB, Canada
Distribution: Fedora
Posts: 37

Rep: Reputation: 15
Garmin GPS getting wrong permissions


Note I'm cross posting from FedoraForum, hoping for some more eyes.

My garmin GPS is being attached with the wrong permissions, 600 instead of 666

I've followed the instructions outlined here, rmmodding gps_babel, making a file /etc/udev/rules.d/51-garmin.rules and trying both sets of udev rules

Code:
ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", GROUP="aluchko", MODE="0666"
and
Code:
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="0666"
But I still end up with
Code:
ll /dev/bus/usb/002/024 
crw-rw---- 1 root vboxusers 189, 151 Jan 31 22:10 /dev/bus/usb/002/024
I can manually run chmod 666 /dev/bus/usb/002/024 and run garmin_save_runs as a non-root user so it is a permissions problem, but I'm not sure why it seems to be ignoring the udev runs.

Does anyone have an idea what's going on or how I can further debug this? Here's the associated dmesg

Code:
[22974.906627] usb 2-5.1: USB disconnect, device number 23
[22980.203137] usb 2-5.1: new full-speed USB device number 24 using ehci_hcd
[22980.289881] usb 2-5.1: New USB device found, idVendor=091e, idProduct=0003
[22980.289888] usb 2-5.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
thanks,
Aaron

Last edited by aluchko; 02-19-2012 at 01:28 PM.
 
Old 02-19-2012, 01:17 PM   #2
scottyanke
LQ Newbie
 
Registered: Dec 2010
Location: Delano, MN
Distribution: Fedora
Posts: 8

Rep: Reputation: 1
I ran into something like this with my USB firmware programmers. I ended up with a single line in /etc/udev/rules.d/something.rules that looked slightly different from yours.

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb", ATTRS{idVendor}=="03eb",ATTRS{idProduct}=="2104", MODE:="0666"

The main difference is in the := which is described as "Assign a value to a key finally; disallow any later changes". For some devices it is needed, and others it isn't.
 
1 members found this post helpful.
Old 02-19-2012, 01:27 PM   #3
aluchko
Member
 
Registered: Mar 2004
Location: Edmonton, AB, Canada
Distribution: Fedora
Posts: 37

Original Poster
Rep: Reputation: 15
So it turns out both

ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", GROUP="aluchko", MODE:="0666"

and

SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE:="0666"

work with the added colon, thanks!
 
  


Reply

Tags
gps, hotplug, permissions, udev


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
garmin gps Question unixshell101 Linux - Hardware 2 07-04-2008 07:04 AM
Usb Garmin GPS alek66 Linux - Hardware 1 11-21-2006 02:11 PM
Debian 3.1 and Garmin GPS ekimyerac Linux - General 2 03-27-2006 07:52 AM
Garmin GPS V and NTPD figadiablo Linux - Hardware 1 04-08-2005 03:58 PM
Garmin GPS-18 - Need a Driver mWare Linux - Hardware 0 06-15-2004 10:21 PM


All times are GMT -5. The time now is 05:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration