LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-05-2006, 11:08 PM   #1
joegumbo
Member
 
Registered: Sep 2006
Distribution: Frugalware
Posts: 228

Rep: Reputation: 32
/dev/ttyUSB0 permissions


Hi,

I'm trying to sync my Palm in Slackware 10.2. I "think" I have most issues worked out. (I've installed Pilot-Link and JPilot.) The hang up seems to be on my permissions. When I try to connect through ttyUSB0, I get a message in console "Permission Denied." I tried logging in as root, chmod +x /dev/ttyUSB0, then opening another console tab and starting JPilot...I still get "Permission Denied."

Thanks,
_Joe
 
Old 10-05-2006, 11:13 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
+x = execute
+w = write
+r = read
 
Old 10-06-2006, 09:09 AM   #3
joegumbo
Member
 
Registered: Sep 2006
Distribution: Frugalware
Posts: 228

Original Poster
Rep: Reputation: 32
When I use +r, I get "No such file or directory." But, when I press the "Sync" button on my palm pilot, I receive the following output:

root@localhost:~# !34
tail -f /var/log/messages
Oct 7 10:01:29 localhost kernel: usb.c: registered new driver serial
Oct 7 10:01:29 localhost kernel: usbserial.c: USB Serial support registered for Generic
Oct 7 10:01:29 localhost kernel: usbserial.c: USB Serial Driver core v1.4
Oct 7 10:01:29 localhost kernel: usbserial.c: USB Serial support registered for Handspring Visor / Treo / Palm 4.0 / Clié 4.x
Oct 7 10:01:29 localhost kernel: usbserial.c: Handspring Visor / Treo / Palm 4.0 / Clié 4.x converter detected
Oct 7 10:01:29 localhost kernel: usbserial.c: Handspring Visor / Treo / Palm 4.0 / Clié 4.x converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
Oct 7 10:01:29 localhost kernel: usbserial.c: Handspring Visor / Treo / Palm 4.0 / Clié 4.x converter now attached to ttyUSB1 (or usb/tts/1 for devfs)
Oct 7 10:01:29 localhost kernel: usbserial.c: USB Serial support registered for Sony Clié 3.5
Oct 7 10:01:29 localhost kernel: usbserial.c: USB Serial support registered for Sony Clié 5.0
Oct 7 10:01:29 localhost kernel: visor.c: USB HandSpring Visor, Palm m50x, Treo, Sony Clié driver v1.7

I admit I'm lost here. In other distros, I simply used /dev/ttyUSB0 or /dev/ttyUSB1 or /dev/ttyUSBwhatever and everything worked just fine. I've tried every possible combo I can think of with this, and I still cannot get this to link with either JPilot or KPilot.

-Joe
 
Old 10-06-2006, 09:25 AM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Location: Va Beach
Distribution: Slackware
Posts: 1,159

Rep: Reputation: 47
As root run chmod 666 /dev/ttyUSB0 and/or ttyUSB1. If your using a 2.6 kernel with udev you should make a rule to do this during detection. And, if you need, I could post mine for you to use as a model.
 
Old 10-06-2006, 10:46 AM   #5
joegumbo
Member
 
Registered: Sep 2006
Distribution: Frugalware
Posts: 228

Original Poster
Rep: Reputation: 32
Hi dracolich!

That absolutely did it. I can sync now.

Thank you!
-Joe




Hi gbonhevi!

I didn't know about +r and +w. I'll make a note of it.

Thanks,
-Joe
 
Old 10-06-2006, 07:56 PM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
In case anyone ends here, the letters are actually a "wrap" for the numbers, they do the same thing.
1 = +x = execute
2 = +w = write
4 = +r = read

3 = 1 + 2 = +xw = execute + write
5 = 1 + 4 = +xr = execute + read
6 = 4 + 2 = +wr = write + read
7 = 1 + 2 + 4 = +xwr = execute + write + read

I guess you get the point

And if you are not on the subjects of permission, you may wonder why a 6 three times?
The first number belongs to the user owning the file, the second to the group the file belongs to, and the third to other users.
So with chmod 666 /dev/ttyUSB0 you gave that file read and write permissions to everyone, the owner, the group and other users.

What you did, was to give that file write and read permissions which is what the program needs to be able to sync with your Palm.

Last edited by gbonvehi; 10-06-2006 at 07:58 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing data from /dev/ttyUSB0 RVDowning Mandriva 1 06-29-2006 08:06 PM
Automatically set permissions on /dev/ttyUSB0 MicahCarrick Linux - Software 1 03-22-2006 08:20 AM
/dev/ttyUSB0 and permissions mrsolo Linux - Software 1 11-14-2004 03:24 PM
serial to USB, trying to read from /dev/ttyUSB0 in C code newguy21 Programming 1 09-29-2004 01:11 PM
/dev/ttyUSB0 js72 Linux - Networking 1 01-05-2003 06:02 AM


All times are GMT -5. The time now is 03:09 AM.

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
Open Source Consulting | Domain Registration