LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-29-2006, 06:58 AM   #1
greatgoogamooga
LQ Newbie
 
Registered: May 2006
Posts: 24

Rep: Reputation: 15
Udev rules and Palm


I had my palm running fine with FC5 and then had to reinstall for a larger disk. I kept the old information for reference so I could duplicate it on the second go around. This time, I cant' get my palm to sync. I have created a 10-visor.rules file with the following:

BUS="usb" SYSFS{product}="Palm Handheld*" KERNEL="ttyUSB*" SYMLINK="pilot" MODE="0660"

When I sync it creates /dev/pilot with the correct permissions. However, the /dev/ttyUSB1 and ttyUSB0 files have the wrong owner

crw------- 1 smith uucp 188, 1 Nov 29 07:46 ttyUSB0
crw------- 1 smith uucp 188, 1 Nov 29 07:46 ttyUSB1

what do I need to do to change it so the ownership belongs to root for the USB devices? Also, aren't these devices supposed to belong in the tty users?

TIA

Goog
 
Old 11-29-2006, 09:54 AM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
This is my line for my Sony Clie

BUS="usb", SYSFS{product}="Palm Handheld", NAME="ttyUSB%n", MODE="0666"

I see a couple differences but don't know if it's the answer.
 
Old 11-29-2006, 11:19 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
You could add a GROUP="root" to your rule
 
Old 11-29-2006, 02:01 PM   #4
greatgoogamooga
LQ Newbie
 
Registered: May 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Hangdog42
You could add a GROUP="root" to your rule

I tried that. If I got it right, that would put /dev/pilot as root ownership, /dev/ttyUSB* are still given username ownership.

In 50-udev.rules it has a listing for ttyUSB[0-9] and says it should be in the uucp group and root owner, but this is not happening.

Goog
 
Old 11-29-2006, 03:15 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
What version of udev are you using? Somewhere in the not so distant past, udev changed the syntax of rules. Essentially if you are looking for a value to match, you need to use == in the rule, where as if you are assigning a value, you use =. So for example, in your rule BUS = "usb" may not be correct. You may need to use BUS == "usb".

I guess I'm wondering if somehow your rule is being ignored and some other udev rule is being followed.
 
Old 11-29-2006, 04:01 PM   #6
Spherical
LQ Newbie
 
Registered: Nov 2006
Location: Dutchyland
Distribution: Gentoo 2.6.18 custombuild
Posts: 29

Rep: Reputation: 15
In stead of all you added to it, I just changed this line:
Code:
KERNEL=="ttyUSB[0-9]*", NAME="%k", GROUP="tty", MODE="0660"
to this:
Code:
KERNEL=="ttyUSB[0-9]*", NAME="%k", SYMLINK="pilot", GROUP="tty", MODE="0666"
Works a very much the same, because the identifying doesn't need to be done with udev, as long as it works, I don't care how my system calls my PDA
 
Old 11-29-2006, 04:21 PM   #7
greatgoogamooga
LQ Newbie
 
Registered: May 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Spherical
In stead of all you added to it, I just changed this line:
Code:
KERNEL=="ttyUSB[0-9]*", NAME="%k", GROUP="tty", MODE="0660"
to this:
Code:
KERNEL=="ttyUSB[0-9]*", NAME="%k", SYMLINK="pilot", GROUP="tty", MODE="0666"
Works a very much the same, because the identifying doesn't need to be done with udev, as long as it works, I don't care how my system calls my PDA

Is this a change you made in the 50-udev.rules file? My understanding is that if I create a rule with a lower number (i.e. 10-visor.rules) that it will supercede any similar rules in 50-udev.rules.

The problem still remains that the character device being created cannot be read or written to by anyone other than the owner, at least so it seems.

Goog
 
  


Reply


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
Slack 11, udev 97 Palm Pilot rules shepper Slackware 1 11-11-2006 11:04 PM
palm setup using udev bland Slackware 8 10-14-2006 02:35 AM
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 03:43 AM
need help fixing my udev rules or ivman rules hedpe Linux - Hardware 2 03-18-2006 10:07 AM
udev + Palm = troubles Neruocomp Slackware 7 05-05-2005 12:20 PM


All times are GMT -5. The time now is 11:01 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