LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-12-2012, 08:38 AM   #1
schnappy
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Rep: Reputation: 0
Debian: User permissions with /dev/rfcommX


Hi,
In Ubuntu 12.04 Precise, after I bind a bluetooth serial device using rfcomm, I can then cat that /dev/rfcomm device, or whatever else I do please. I did have osme issues with this, but I've moved to debian so I'll forget those. I could do what I needed as a non-root user.

On Debian Squeeze, everything works perfectly (Better than Ubuntu) except that only the root user can access /dev/rfcommX. Since I don't want to go using root for everything, I need some help. Someone suggested to me that it's to do with groups, but I am still learning the dead basics here and am clueless.

Thanks
sch
 
Old 07-13-2012, 12:57 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I think you need to put yourself in the dialout group. You can confirm this by looking at the ownership of /dev/rfcommX.

Code:
ls -l /dev/rfcommX
Evo2.

PS. I found this information in /usr/share/doc/bluez/README.Debian.gz
PPS. /usr/share/doc/<package>/README.Debian* is always the place I look when
I'm trying to configure/understand something that I think might be Debian specific.
 
Old 07-13-2012, 01:04 AM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Opps, forgot to tell you how to add yourself to a group. Here it is:

Code:
usermod -a -G dialout schnappy
Running this as root would add the user schnappy to the dialout group.

HTH,

Evo2.
 
Old 07-13-2012, 02:08 AM   #4
schnappy
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Hey,
Thanks very much! That worked perfectly. Squeeze is now behaving like Precise, as I wanted.

An issue with both though:
I want multiple programs using the serial device at once. However, when one connects, it seemingly locks out the other program - why can it only be accessed by one program? Since it's a read only device, recieving gps data, I don't see why it should be locked.

The simple solution would be to use gpsd, but that's fiddley and one of my programs doesn't support that.

Thanks
 
Old 07-13-2012, 02:53 AM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

glad I could help. I suggest that you start a new thread for your new question, and mark this thread as [SOLVED] using the thread tools menu.

Cheers,

Evo2.
 
  


Reply



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
[SOLVED] Debian Live Netboot user permissions WarTurkey Debian 2 03-23-2012 08:53 PM
Please check '/dev/sdc1' and the ntfs-3g binary permissions, and the mounting user ID tmick Debian 4 08-21-2011 07:57 PM
[SOLVED] filesystem permissions question - making so user can't change permissions? c0pe Linux - Security 4 07-12-2010 09:06 AM
correct permissions for mounting /dev/hda in /home/user-x ovidnet Linux - Software 2 04-07-2008 08:40 PM
/dev/audio, /dev/dsp and /dev/mixer missing in Debian Etch 1337_penguin Debian 2 04-11-2007 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:00 PM.

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