LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2007, 05:59 AM   #1
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Rep: Reputation: 30
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.
 
Old 03-04-2007, 08:14 AM   #2
stan.distortion
Member
 
Registered: Sep 2005
Location: ireland
Distribution: debian with bits of everything stuck on it
Posts: 114

Rep: Reputation: 15
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
 
Old 03-04-2007, 08:40 AM   #3
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
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...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
permission problem with bluetooth connection trident Linux - Security 4 12-20-2006 09:21 AM
Permission Denied Deag^ Linux - Security 1 10-20-2004 11:05 AM
Permission Denied DB03 Linux - Newbie 8 04-19-2004 05:20 AM
permission denied noir-gel Programming 8 11-17-2003 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:39 AM.

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