Date: Tue, 25 Mar 2008 01:58:47 -0400 From: cjc2007a@xemaps.com To: <freebsd-fs@freebsd.org> Subject: ftp user cannot access ZFS partition Message-ID: <001301c88e3d$4b1648c0$7f01000a@koalavm> In-Reply-To: <20080321120012.CB3CA10656A4@hub.freebsd.org> References: <20080321120012.CB3CA10656A4@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001301c88e3d$4b1648c0$7f01000a>