List Info

Thread: ftp user cannot access ZFS partition




ftp user cannot access ZFS partition
country flaguser name
United States
2008-03-25 00:58:47
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

_______________________________________________
freebsd-fsfreebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to
"freebsd-fs-unsubscribefreebsd.org"

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )