From owner-freebsd-fs@FreeBSD.ORG Tue Mar 25 07:05:48 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 990091065675 for ; Tue, 25 Mar 2008 07:05:48 +0000 (UTC) (envelope-from cjc2007a@xemaps.com) Received: from web01-nyc.clicvu.com (web01-nyc.clicvu.com [69.18.197.228]) by mx1.freebsd.org (Postfix) with ESMTP id 434AF8FC27 for ; Tue, 25 Mar 2008 07:05:48 +0000 (UTC) (envelope-from cjc2007a@xemaps.com) Received: from [192.168.0.11] by web01-nyc.clicvu.com (Post.Office MTA v3.5.3 release 223 ID# 0-64039U1000L100S0V35) with SMTP id com for ; Tue, 25 Mar 2008 00:59:26 -0500 Received: from OMTA07.emeryville.ca.mail.comcast.net ([76.96.30.59]) by QMTA07.emeryville.ca.mail.comcast.net with comcast id 5Hd31Z0041GXsucA702000; Tue, 25 Mar 2008 05:57:44 +0000 Received: from koalavm ([68.59.182.71]) by OMTA07.emeryville.ca.mail.comcast.net with comcast id 5Hyo1Z0021Yq1QL8T00000; Tue, 25 Mar 2008 05:58:48 +0000 X-Authority-Analysis: v=1.0 c=1 a=UYSjntfoyeiAjeupoN8A:9 a=DFG7GC7o4CMMfoBRC1LptXrWTh4A:4 a=b8hG5vVbyAkA:10 From: cjc2007a@xemaps.com To: References: <20080321120012.CB3CA10656A4@hub.freebsd.org> Date: Tue, 25 Mar 2008 01:58:47 -0400 Message-ID: <001301c88e3d$4b1648c0$7f01000a@koalavm> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20080321120012.CB3CA10656A4@hub.freebsd.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AciLSydoJGKkP2pQR/mXNhWXsu0+yQC3nLJg Subject: ftp user cannot access ZFS partition X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Mar 2008 07:05:48 -0000 Hello, I have an AMD3800 box running FreeBSD-7.0-RELEASE, 2 x 80GB SATA drives (ad4 ad6) mirrored with geom_mirror for the OS, and 4 x 320GB SATA drives (ad10 ad12 ad14 ad16) all configured as ZFS - RAIDZ mode. This seems to work great, creating/deleting filesystems, snapshots, copying files to and from zfs, etc. The only problem is this is an ftp box (vsftpd at the moment), and I cannot get vsftpd to access a directory on the RAIDZ partition. $ zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT zpool0 744G 2.3G 742G 0% ONLINE - $ zfs list NAME USED AVAIL REFER MOUNTPOINT zpool0 11.8G 536G 28.4K /zpool0 zpool0/data2 1.76G 536G 1.72G /zpool0/data2 (I have a subdir under data2 called ftp) The test user's home directory is /zpool0/data2/ftp When I ftp to the server, as soon as I enter the user's password I get: 500 OOPS: cannot change directory:/zpool/data2/ftp I don't get any more enlightening info from the vsftpd log. This is apparently a permissions issue, but the home directory belongs to this user, and I've opened permissions up to 777 on /zpool0/data2 and subdirs at the moment for testing. I can ftp in OK with a normal user chrooted to a home directory on the UFS partitions. Also if I disable chrooting for a user, I can login to a UFS folder OK, cd everywhere in the file tree, except I cannot cd to /zpool0/data2. I have tried another ftp server, PureFTP, with identical results, so the problem here is the ftp server won't cd to a directory on the ZRAID partition. I have Googled everything I can think of, with no hits on this topic. I've looked at ACLs, which are not implemented yet on FreeBSD. Any help on this problem would be appreciated. Thanks, Chris