1. Put the user in /etc/ftpchroot, then change the user's home directory to /usr/local/apache/htdocs/chinaunix.
2. The default ftpd came with FreeBSD does not support this function (I think). However, with FreeBSD 4.7, another ftp server, lukemftpd, was added. With lukemftpd, you should be able to do this. Take a look at lukemftpd(8) and ftpd.conf(5), and pay attention to "modify" in ftpd.conf(5).
Beware that if you do not allow the user to delete the uploaded files, they can't update it either.
|