LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Permission denied during Bluetooth paring (https://www.linuxquestions.org/questions/linux-general-1/permission-denied-during-bluetooth-paring-534433/)

CrownAmbassador 03-04-2007 05:59 AM

Permission denied during Bluetooth paring
 
I'm trying to use my Samsung Z400 as a modem via bluetooth, but I can't get it paired properly. When I get to rfcomm connect [phone address] the phone asks me for a pin. I then enter the same pin I entered in /etc/bluetooth/pin but then I get a permission denied message on my computer!

I have Googled this a lot and still no joy.

My hciconfig:

Code:

#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.7 2004/12/13 14:16:03 holtmann Exp $
#

# HCId options
options {
        # Automatically initialize new devices
        autoinit yes;

        # Security Manager mode
        #  none - Security manager disabled
        #  auto - Use local PIN for incoming connections
        #  user - Always ask user for a PIN
        security user;

        # Pairing mode
        #  none  - Pairing disabled
        #  multi - Allow pairing with already paired devices
        #  once  - Pair once and deny successive attempts
        pairing multi;

        # PIN helper
        pin_helper /etc/bluetooth/pin;

        # D-Bus PIN helper
        #dbus_pin_helper;
}
# Default settings for HCI devices
device {
        # Local device name
        #  %d - device id
        #  %h - host name
        name "Conrad";

        # Local device class
        class 0xff0100;

        # Default packet type
        #pkt_type DH1,DM1,HV1;

        # Inquiry and Page scan
        iscan enable; pscan enable;

# Default link mode
        #  none  - no specific policy
        #  accept - always accept incoming connections
        #  master - become master on incoming connections,
        #            deny role switch on outgoing connections
        #
        lm accept,master;

        # Default link policy
        #  none    - no specific policy
        #  rswitch - allow role switch
        #  hold    - allow hold mode
        #  sniff  - allow sniff mode
        #  park    - allow park mode
        #
        lp hold,sniff,park;

        # Authentication and Encryption
        #auth enable;
        #encrypt enable;
}

Any help will be much appreciated. Thanks.

stan.distortion 03-04-2007 08:14 AM

cant say I know a lot about bluetooth but it sounds like a permissions problem.
First, temporarily, try pairing as root. If that works you will either need to change the user settings to be part of the group bluetooth belongs to or to change the permissions of the bluetooth device node in /dev. That will probably need to be done via the appropriate file in /etc/udev. Be carefull with this as it is a possible security hazard, creating another node with the needed permissions and linking to the real node would be safer.
If that doesn't work then try changing the conf file settings, temporarily set security to "none". Also it may need the pairing set to "once" but I'm not sure about this.
Cheers,
Stan

CrownAmbassador 03-04-2007 08:40 AM

Thanks Stan, but I think I found my problem. I have a very bad habbit of doing everything as root!!! I guess thats why it didn't want to work. Thanks anyway...


All times are GMT -5. The time now is 01:14 AM.