From owner-freebsd-bluetooth@FreeBSD.ORG Mon Dec 5 21:33:22 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D8B216A42A for ; Mon, 5 Dec 2005 21:33:22 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC1CC43D75 for ; Mon, 5 Dec 2005 21:33:16 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id jB5LX6J15336; Mon, 5 Dec 2005 16:33:07 -0500 Message-ID: <4394B211.1080503@savvis.net> Date: Mon, 05 Dec 2005 13:33:05 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Zahemszky_G=E1bor?= References: <4394A53E.1050109@Zahemszky.HU> In-Reply-To: <4394A53E.1050109@Zahemszky.HU> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: Local browsing: permission denied X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 21:33:23 -0000 Hello, > I'm using 6-stable, with the new bluetooth-rc system. It works fine, but > with sdpcontrol, I have a little problem. If I try it as a regular user: > > $ sdpcontrol -l browse > Could not execute command "browse". Permission denied '-l' means query services registered with _local_ sdpd(8) daemon. it means query will go via control socket. here is the quote from sdpd(8) man page === CAVEAT ... Access rights on the control socket define which application can regis- ter, remove or change the service. The application must be able to write to and read from the control socket in order to perform any query to the Service Database via control socket. === so you need to run "sdpcontrol -l browse" as root. > $ sdpcontrol -a my-t610 browse # BT if off on my tel. > Could not execute command "browse". Host is down this is normal. you have turned off bluetooth on the phone. > $ sdpcontrol -a zahygabi-t610 browse # BT is on > > Record Handle: 0x00010000 > blabla .... this is normal too. > So why I can't browse local servers? because sdpcontrol(8) does not have enough permissions to write to the control socket. yes, i agree, its not very convenient for user. i'm currently thinking about better way to handle this type of queries. thanks, max