SlackwareThis Forum is for the discussion of Slackware Linux.
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.
<!-- allow users of lp group (printing subsystem) to
communicate with bluetoothd -->
<policy group="lp">
<allow send_destination="org.bluez"/>
</policy>
...in /etc/dbus-1/system.d/bluetooth.conf?
Code:
<policy at_console="true">
<allow send_destination="org.bluez"/>
</policy>
<!-- allow users of lp group (printing subsystem) to
communicate with bluetoothd -->
<policy group="lp">
<allow send_destination="org.bluez"/>
</policy>
<policy context="default">
<deny send_destination="org.bluez"/>
</policy>
<!-- allow users of lp group (printing subsystem) to
communicate with bluetoothd -->
<policy group="lp">
<allow send_destination="org.bluez"/>
</policy>
...in /etc/dbus-1/system.d/bluetooth.conf?
It's the same as mine, so how should I change it?
I noticed the group lp and I'm sure my account is in the group:
Code:
bash-4.3$ groups
users lp wheel floppy audio video cdrom plugdev power netdev scanner
OK, I don't normally use KDE, but I started it up on a spare laptop that's running Slackware64 14.2.
KDE uses bluedevil, so make sure that the bluedevil package is installed. If you have a bluetooth dongle as I do, make sure that it was plugged in during boot or bluetoothd won't start.
I got the bluetooth symbol in the task bar immediately after starting bluetoothd. KDE's "System Settings" had a bluetooth icon in the "Network and Connectivity" section.
OK, I don't normally use KDE, but I started it up on a spare laptop that's running Slackware64 14.2.
KDE uses bluedevil, so make sure that the bluedevil package is installed. If you have a bluetooth dongle as I do, make sure that it was plugged in during boot or bluetoothd won't start.
I got the bluetooth symbol in the task bar immediately after starting bluetoothd. KDE's "System Settings" had a bluetooth icon in the "Network and Connectivity" section.
After messing around with the computer for another few days, I decided to give up and created another new account while adding it to the essential groups at the moment of creation. Bluetooth seems to be working very well!
I believe it's probably the wrong parameters that's not set up properly the first time I set up the account, for I manually added the groups later instead.
Still I learned a lot from all of you. Thank you all!
I had the exactly same problem. A fresh Slackware64 14.2 installation.
Bluetooth Manager (blueman-manager) was working fine as root,
but as a normal user it wouldn't start.
Running `blueman-manager` or `blueman-applet` from the console
showed some ~ "dbus access denied" errors...
Now the Bluetooth manager should work as expected on
a normal (non-root) user account the same way it worked
on the root account.
The "normal user" doesn't need to be in any "fancy" groups,
I'm testing now without all these additional groups
and it works, because that's not a group permission problem,
it's a "dbus permission problem", whatever this means ;-)
Code:
bash-4.3$ groups
users
Of course adding the user to lp,floppy,audio,video,cdrom,plugdev,power,netdev,scanner
makes sense and is sometimes required but it's not relevant to the
Bluetooth Manager / Applet problem for non-root users, because they work without
these groups, only /etc/dbus-1/system.d/bluetooth.conf
needs to be modified as mentioned above.
As a followup, however, I noticed that adding a user to the lp group, logging out and logging back in did not work. After a reboot of the server in question, the dbus-send commands started to work.
There appears to be something cached that wasn't cleared by the logout; I'll look some more tonight after work to see what that could be.
OK, after you add a user to the lp group, you must
As root, run /etc/rc.d/rc.messagebus reload (or reboot)
Logout that user
Log in with that user
I just tested that sequence on my laptop with new users. (Don't run /etc/rc.d/rc.messagebus restart for you will have to restart bluetooth, NetworkManager, and any desktop environment that you've got running. As I found out.)
The "normal user" doesn't need to be in any "fancy" groups,
I'm testing now without all these additional groups
and it works, because that's not a group permission problem,
it's a "dbus permission problem", whatever this means ;-)
Code:
bash-4.3$ groups
users
Of course adding the user to lp,floppy,audio,video,cdrom,plugdev,power,netdev,scanner
makes sense and is sometimes required but it's not relevant to the
Bluetooth Manager / Applet problem for non-root users, because they work without
these groups, only /etc/dbus-1/system.d/bluetooth.conf
needs to be modified as mentioned above.
You're missing the reason for these groups. Not every admin wants every user to have access to bluetooth. That is why it is assigned to a group (I don't really agree with it being the lp group, but for some reason, my input was not asked when the decision was made ). This way, only certain users have access to bluetooth. Now, any user that logs in, whether local or remote, can access your bluetooth. There's a reason I don't assign most of my remote users to certain groups, because they have no business using bluetooth, usb devices, etc. while they're on a remote connection. Now, on your system, you may want all users to have access to everything. That is acceptable for you, but not for everyone.
This is why Pat has made it easy with the adduser script, which allows you to automatically assign new users to the recommended groups, which would've completely alleviated your issue and would've never required editing that file. You may also run into additional permission problems with you not being assigned to other groups (although, I imagine since you're not seeing them, that you're starting at runlevel 3, which will automatically assign logged in users to groups the user isn't necessarily assigned to).
@Richard, thanks for the extra details on how to get users recently added to the lp group to allow bluetooth usage. I'm sure that will come in handy at some point.
@Richard, thanks for the extra details on how to get users recently added to the lp group to allow bluetooth usage. I'm sure that will come in handy at some point.
Like most of us, I dislike giving bad advice; since the log-out/log-in sequence wouldn't actually work by itself, I wanted to find the least painful additional step(s) that would make it work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.