[SOLVED] Debian: User permissions with /dev/rfcommX
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.