Return-Path: Date: Tue, 29 Jan 2008 14:25:55 +0100 From: Miguel In-reply-to: <766221.43681.qm@web8409.mail.in.yahoo.com> To: BlueZ users Message-id: <1201613155.14284.32.camel@McM> MIME-version: 1.0 References: <766221.43681.qm@web8409.mail.in.yahoo.com> Subject: Re: [Bluez-users] Can't connect RFCOMM socket: Permission denied Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0066382496==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============0066382496== Content-type: multipart/alternative; boundary="Boundary_(ID_ig4kG8xO2LsHqlcmFN1YGA)" --Boundary_(ID_ig4kG8xO2LsHqlcmFN1YGA) Content-type: text/plain Content-transfer-encoding: 7BIT rfcomm creates a devices in /dev/rfcomm0 in your case. Check if you have the correct permissions. Try to connect using root user ... On Tue, 2008-01-29 at 18:37 +0530, pramod gurav wrote: > hi all, > I am connection my system to Bt headset... > But when i try to connect it using > $rfcomm connect 0 00:0F:DE:B1:02:42 > error comes......... Can't connect RFCOMM socket: Permission denied > The /var/log/messages has following.. > > Jan 29 18:03:17 localhost hcid[1406]: HCI dev 0 registered > Jan 29 18:03:17 localhost hcid[1406]: HCI dev 0 up > Jan 29 18:03:17 localhost hcid[1406]: Device hci0 has been added > Jan 29 18:03:17 localhost hcid[1406]: Starting security manager 0 > Jan 29 18:03:17 localhost hcid[1406]: Device hci0 has been activated > Jan 29 18:06:47 localhost hcid[1406]: link_key_request > (sba=00:00:00:00:00:00, dba=00:0F:DE:B1:02:42) > Jan 29 18:06:47 localhost hcid[1406]: pin_code_request > (sba=00:00:00:00:00:00, dba=00:0F:DE:B1:02:42) > Jan 29 18:11:13 localhost hcid[1406]: pin_code_request > (sba=00:00:00:00:00:00, dba=00:0F:DE:B1:02:42) > Jan 29 18:13:25 localhost last message repeated 2 times > Jan 29 18:14:03 localhost hcid[15000]: Bluetooth HCI daemon > Jan 29 18:14:03 localhost hcid[15000]: Unknown option 'passkey' line > 24 > Jan 29 18:14:03 localhost hcid[15000]: syntax error line 24 > Jan 29 18:14:03 localhost hcid[15000]: syntax error line 34 > Jan 29 18:14:03 localhost hcid[15000]: Can't get system message bus > name: Connection ":1.34" is not allowed to own the service "org.bluez" > due to security policies in the configuration file > Jan 29 18:14:03 localhost hcid[15000]: Can't open PIN > file /etc/bluetooth/pin: Permission denied (13) > Jan 29 18:14:03 localhost hcid[15001]: Can't init device hci0: > Permission denied (13) > Jan 29 18:14:03 localhost hcid[15002]: Can't set scan mode on hci0: > Permission denied (13) > Jan 29 18:14:03 localhost hcid[15002]: Can't set auth on hci0: > Permission denied (13) > Jan 29 18:14:03 localhost hcid[15002]: Can't set encrypt on hci0: > Permission denied (13) > Jan 29 18:14:03 localhost hcid[15000]: Starting security manager 0 > Jan 29 18:18:10 localhost hcid[15022]: Bluetooth HCI daemon > Jan 29 18:18:10 localhost hcid[15022]: Unknown option 'passkey' line > 24 > Jan 29 18:18:10 localhost hcid[15022]: syntax error line 24 > Jan 29 18:18:10 localhost hcid[15022]: syntax error line 34 > Jan 29 18:18:10 localhost hcid[15022]: Can't get system message bus > name: Connection ":1.35" is not allowed to own the service "org.bluez" > due to security policies in the configuration file > Jan 29 18:18:10 localhost hcid[15022]: Can't open PIN > file /etc/bluetooth/pin: Permission denied (13) > Jan 29 18:18:10 localhost hcid[15023]: Can't init device hci0: > Permission denied (13) > Jan 29 18:18:10 localhost hcid[15024]: Can't set scan mode on hci0: > Permission denied (13) > Jan 29 18:18:10 localhost hcid[15024]: Can't set auth on hci0: > Permission denied (13) > Jan 29 18:18:10 localhost hcid[15024]: Can't set encrypt on hci0: > Permission denied (13) > Jan 29 18:18:10 localhost hcid[15022]: Starting security manager 0 > Jan 29 18:18:29 localhost hcid[15000]: Exit. > Jan 29 18:18:31 localhost hcid[15022]: Exit. > Jan 29 18:20:22 localhost smartd[1554]: Device: /dev/hda, 1 Currently > unreadable (pending) sectors > Jan 29 18:20:22 localhost smartd[1554]: Device: /dev/hda, 1 Offline > uncorrectable sectors > Jan 29 18:26:19 localhost kernel: usb 2-1: USB disconnect, address 5 > Jan 29 18:26:19 localhost hcid[1406]: HCI dev 0 down > Jan 29 18:26:19 localhost hcid[1406]: Stopping security manager 0 > Jan 29 18:26:19 localhost hcid[1406]: Device hci0 has been disabled > Jan 29 18:26:19 localhost hcid[1406]: HCI dev 0 unregistered > Jan 29 18:26:19 localhost hcid[1406]: Unregister path: /org/bluez/hci0 > Jan 29 18:26:19 localhost hcid[1406]: Device hci0 has been removed > Jan 29 18:32:01 localhost hcid[15118]: Bluetooth HCI daemon > Jan 29 18:32:01 localhost hcid[15118]: Unknown option 'passkey' line > 24 > Jan 29 18:32:01 localhost hcid[15118]: syntax error line 24 > Jan 29 18:32:01 localhost hcid[15118]: Can't get system message bus > name: Connection ":1.36" is not allowed to own the service "org.bluez" > due to security policies in the configuration file > Jan 29 18:32:01 localhost hcid[15118]: Can't open PIN > file /etc/bluetooth/pin: Permission denied (13) > > > Can anyone please help me.... > > Thanks in Advance... > Pramod > > > > > ______________________________________________________________________ > 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --Boundary_(ID_ig4kG8xO2LsHqlcmFN1YGA) Content-type: text/html; charset=utf-8 Content-transfer-encoding: 7BIT rfcomm creates a devices in /dev/rfcomm0 in your case. Check if you have the correct permissions.

Try to connect using root user ...

On Tue, 2008-01-29 at 18:37 +0530, pramod gurav wrote:
hi all,
I am connection my system to Bt headset...
But when i try to connect it using
$rfcomm connect 0 00:0F:DE:B1:02:42
error comes......... Can't connect RFCOMM socket: Permission denied
The /var/log/messages has following..

Jan 29 18:03:17 localhost hcid[1406]: HCI dev 0 registered
Jan 29 18:03:17 localhost hcid[1406]: HCI dev 0 up
Jan 29 18:03:17 localhost hcid[1406]: Device hci0 has been added
Jan 29 18:03:17 localhost hcid[1406]: Starting security manager 0
Jan 29 18:03:17 localhost hcid[1406]: Device hci0 has been activated
Jan 29 18:06:47 localhost hcid[1406]: link_key_request (sba=00:00:00:00:00:00, dba=00:0F:DE:B1:02:42)
Jan 29 18:06:47 localhost hcid[1406]: pin_code_request (sba=00:00:00:00:00:00, dba=00:0F:DE:B1:02:42)
Jan 29 18:11:13 localhost hcid[1406]: pin_code_request (sba=00:00:00:00:00:00, dba=00:0F:DE:B1:02:42)
Jan 29 18:13:25 localhost last message repeated 2 times
Jan 29 18:14:03 localhost hcid[15000]: Bluetooth HCI daemon
Jan 29 18:14:03 localhost hcid[15000]: Unknown option 'passkey' line 24
Jan 29 18:14:03 localhost hcid[15000]: syntax error line 24
Jan 29 18:14:03 localhost hcid[15000]: syntax error line 34
Jan 29 18:14:03 localhost hcid[15000]: Can't get system message bus name: Connection ":1.34" is not allowed to own the service "org.bluez" due to security policies in the configuration file
Jan 29 18:14:03 localhost hcid[15000]: Can't open PIN file /etc/bluetooth/pin: Permission denied (13)
Jan 29 18:14:03 localhost hcid[15001]: Can't init device hci0: Permission denied (13)
Jan 29 18:14:03 localhost hcid[15002]: Can't set scan mode on hci0: Permission denied (13)
Jan 29 18:14:03 localhost hcid[15002]: Can't set auth on hci0: Permission denied (13)
Jan 29 18:14:03 localhost hcid[15002]: Can't set encrypt on hci0: Permission denied (13)
Jan 29 18:14:03 localhost hcid[15000]: Starting security manager 0
Jan 29 18:18:10 localhost hcid[15022]: Bluetooth HCI daemon
Jan 29 18:18:10 localhost hcid[15022]: Unknown option 'passkey' line 24
Jan 29 18:18:10 localhost hcid[15022]: syntax error line 24
Jan 29 18:18:10 localhost hcid[15022]: syntax error line 34
Jan 29 18:18:10 localhost hcid[15022]: Can't get system message bus name: Connection ":1.35" is not allowed to own the service "org.bluez" due to security policies in the configuration file
Jan 29 18:18:10 localhost hcid[15022]: Can't open PIN file /etc/bluetooth/pin: Permission denied (13)
Jan 29 18:18:10 localhost hcid[15023]: Can't init device hci0: Permission denied (13)
Jan 29 18:18:10 localhost hcid[15024]: Can't set scan mode on hci0: Permission denied (13)
Jan 29 18:18:10 localhost hcid[15024]: Can't set auth on hci0: Permission denied (13)
Jan 29 18:18:10 localhost hcid[15024]: Can't set encrypt on hci0: Permission denied (13)
Jan 29 18:18:10 localhost hcid[15022]: Starting security manager 0
Jan 29 18:18:29 localhost hcid[15000]: Exit.
Jan 29 18:18:31 localhost hcid[15022]: Exit.
Jan 29 18:20:22 localhost smartd[1554]: Device: /dev/hda, 1 Currently unreadable (pending) sectors
Jan 29 18:20:22 localhost smartd[1554]: Device: /dev/hda, 1 Offline uncorrectable sectors
Jan 29 18:26:19 localhost kernel: usb 2-1: USB disconnect, address 5
Jan 29 18:26:19 localhost hcid[1406]: HCI dev 0 down
Jan 29 18:26:19 localhost hcid[1406]: Stopping security manager 0
Jan 29 18:26:19 localhost hcid[1406]: Device hci0 has been disabled
Jan 29 18:26:19 localhost hcid[1406]: HCI dev 0 unregistered
Jan 29 18:26:19 localhost hcid[1406]: Unregister path: /org/bluez/hci0
Jan 29 18:26:19 localhost hcid[1406]: Device hci0 has been removed
Jan 29 18:32:01 localhost hcid[15118]: Bluetooth HCI daemon
Jan 29 18:32:01 localhost hcid[15118]: Unknown option 'passkey' line 24
Jan 29 18:32:01 localhost hcid[15118]: syntax error line 24
Jan 29 18:32:01 localhost hcid[15118]: Can't get system message bus name: Connection ":1.36" is not allowed to own the service "org.bluez" due to security policies in the configuration file
Jan 29 18:32:01 localhost hcid[15118]: Can't open PIN file /etc/bluetooth/pin: Permission denied (13)


Can anyone please help me....

Thanks in Advance...
Pramod




5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users
--Boundary_(ID_ig4kG8xO2LsHqlcmFN1YGA)-- --===============0066382496== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============0066382496== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============0066382496==--