From owner-freebsd-bluetooth@FreeBSD.ORG Fri Apr 10 07:53:36 2009 Return-Path: Delivered-To: bluetooth@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D50E106566B for ; Fri, 10 Apr 2009 07:53:36 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp01.one2one.net (smtp01.one2one.net [149.254.200.196]) by mx1.freebsd.org (Postfix) with ESMTP id F342C8FC0C for ; Fri, 10 Apr 2009 07:53:35 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from [127.0.0.1] (helo=localhost) by smtpbarns01 with esmtp (Exim 4.50) id 1LsBHg-0006wY-Fe; Fri, 10 Apr 2009 08:36:20 +0100 Received: from smtpbarns01 ([127.0.0.1]) by localhost (smtpbarns01 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26397-09; Fri, 10 Apr 2009 08:36:20 +0100 (BST) Received: from [10.216.29.42] (helo=rya-online.net) by smtpbarns01 with smtp (Exim 4.50) id 1LsBHe-0006wL-LS; Fri, 10 Apr 2009 08:36:20 +0100 Received: (nullmailer pid 964 invoked by uid 1000); Fri, 10 Apr 2009 07:35:04 -0000 Date: Fri, 10 Apr 2009 08:35:04 +0100 (BST) To: "Mikhail T\." In-Reply-To: <49DE5ECD.8020202@aldan.algebra.com> References: <49DE5ECD.8020202@aldan.algebra.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1239348904.587506.623.nullmailer@galant.ukfsn.org> From: Iain Hibbert X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: plunky@rya-online.net X-SA-Exim-Scanned: No (on smtpbarns01); SAEximRunCond expanded to false Cc: bluetooth@FreeBSD.org Subject: Re: per-user directories for obexapp-server 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: Fri, 10 Apr 2009 07:53:36 -0000 On Thu, 9 Apr 2009, Mikhail T. wrote: > I was able to set up the Bluetooth-server on my main machine, but all of > the pushed files (Object Pushed) end up in the same root-only > directory... Is there, perhaps, a way to specify a different directory > for each device-ID (bdaddr)? One trouble with bluetooth is that there is no finer identification than 'device id', so a multi-user system ends up allowing access by any user to all known devices. This could likely be worked out, I had some ideas about passing credentials around in the kernel to enable marking baseband links as private, and having link keys stored in users home directories but I'm not sure the effort required would be worth it as most systems (with bluetooth) are single-concurrent-user anyway. In the meantime I would suggest something like having a ttyaction(5) mechanism to arrange something like mount -t null -o mount /var/obex ${HOME}/obex for the user logged in on the console, so that incoming files are stored the logged in users directory (or /var/obex if nobody is logged in at the console). iain