From owner-freebsd-questions@FreeBSD.ORG Fri Mar 9 22:35:07 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E50B516A400 for ; Fri, 9 Mar 2007 22:35:07 +0000 (UTC) (envelope-from chad@shire.net) Received: from hobbiton.shire.net (mail.shire.net [166.70.252.250]) by mx1.freebsd.org (Postfix) with ESMTP id CE3FD13C461 for ; Fri, 9 Mar 2007 22:35:07 +0000 (UTC) (envelope-from chad@shire.net) Received: from [67.171.127.191] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.51) id 1HPng3-000LNP-2m; Fri, 09 Mar 2007 15:35:07 -0700 In-Reply-To: <193E69CC-98DA-49B1-B89F-3DC47EE92FFF@untoldfaith.com> References: <193E69CC-98DA-49B1-B89F-3DC47EE92FFF@untoldfaith.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8A5C195A-78C4-4BBA-91EA-35E03F8E8DC4@shire.net> Content-Transfer-Encoding: 7bit From: "Chad Leigh -- Shire.Net LLC" Date: Fri, 9 Mar 2007 15:35:05 -0700 To: Troy Schultz X-Mailer: Apple Mail (2.752.2) X-SA-Exim-Connect-IP: 67.171.127.191 X-SA-Exim-Mail-From: chad@shire.net X-SA-Exim-Scanned: No (on hobbiton.shire.net); SAEximRunCond expanded to false Cc: freebsd-questions@freebsd.org Subject: Re: Mounting into a jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 22:35:08 -0000 On Mar 9, 2007, at 3:11 PM, Troy Schultz wrote: > Hello, > > I am running FreeBSD 6.2. > > I am currently mounting a smb share and then remounting the smb mount > into a jail with nullfs. > > /etc/fstab > # smbfs mount > //@/ /path/to/smb/mount smbfs rw 0 0 > # local mount > /path/to/smb/mount /path/to/jail/directory nullfs rw,late 0 0 > > The main reason I am using this jail is for a webserver and I need > to have > the web developer be able to write to this samba share > > I originally tried mounting in fstab the smb share like this > //@/ /path/to/smb/mount smbfs rw,uid=www 0 0 > however, this did not work so I ended up making the share point > owned by the > user and group www this took care of it but I was wondering if > there was a > better way to do this as far as passing through to a jail and maybe > getting > the uid to actually work from within the fstab file. > > Any suggestions would be welcomed. I don't do this with smb but do do it with nfs. I don't know about uid with smb but I just mount it on the base server inside the jails path. Add the UID with no login capability to the base machine password file and then you can probably set uid in the base server as well. Chad --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad at shire.net