Return-Path: Message-ID: <46475927.2080609@nnytech.net> Date: Sun, 13 May 2007 14:29:59 -0400 MIME-Version: 1.0 To: BlueZ development References: <432beae0705121846x7b181d3fm180205dfa783e975@mail.gmail.com><432beae0705121900q237f835ahf6d2ac63c619415@mail.gmail.com> <46474B6A.1040705@gentoo.org> In-Reply-To: <46474B6A.1040705@gentoo.org> From: Feig Subject: Re: [Bluez-devel] RE : RE : Problems connecting to a bluetooth headset faoMarcel Reply-To: e.john.feig@gmail.com, BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0199467755==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net This is a multi-part message in MIME format. --===============0199467755== Content-Type: multipart/alternative; boundary="------------020202050608020706070909" This is a multi-part message in MIME format. --------------020202050608020706070909 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Petteri Räty wrote: > Frederic Dalleau kirjoitti: > >>>> A2DPD[18:44:14.790]: a2dp_make_listen_socket: (errno=13:Permission >>>> denied)Cannot bind socket 6 for psm 25 >>>> >>> I'm wondering what causes this, the bind call is failing with errno=EPERM. >>> Do you know of something in bluez config or something security related >>> >> that could prevent binding if not root? >> >> I should have RTFM >> http://people.csail.mit.edu/albert/bluez-intro/x145.html#port-numbers >> Thanks, >> Frederic >> >> >> > > from http://bluetooth-alsa.sourceforge.net/build.html > "... and run a2dpd (it's not advised to run it as root)." > > Hehe. I wonder what the developers do then as it doesn't work as a > normal user. > > Regards, > Petteri > I got it to work as a normal user, I don't remember exactly what I did, but I'm pretty sure that all it needed was a 'chmod a+x' on the required files. I do think that this could be handled better with an /etc/init.d/ script that ran a2dpd as the user. Or even hook it into the /etc/init.d/bluetooth script. -John --------------020202050608020706070909 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Petteri Räty wrote:
Frederic Dalleau kirjoitti:
  
A2DPD[18:44:14.790]: a2dp_make_listen_socket: (errno=13:Permission
denied)Cannot bind socket 6 for psm 25
        
I'm wondering what causes this, the bind call is failing with errno=EPERM.
Do you know of something in bluez config or something security related
      
that could prevent binding if not root?

I should have RTFM
http://people.csail.mit.edu/albert/bluez-intro/x145.html#port-numbers
Thanks,
Frederic


    

from http://bluetooth-alsa.sourceforge.net/build.html
"... and run a2dpd (it's not advised to run it as root)."

Hehe. I wonder what the developers do then as it doesn't work as a
normal user.

Regards,
Petteri
  
I got it to work as a normal user, I don't remember exactly what I did, but I'm pretty sure that all it needed was a 'chmod a+x' on the required files.

I do think that this could be handled better with an /etc/init.d/ script that ran a2dpd as the user. Or even hook it into the /etc/init.d/bluetooth script.

-John
--------------020202050608020706070909-- --===============0199467755== 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 DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============0199467755== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============0199467755==--