我正在尝试设置一些客户端用户帐户,以便对我们的FreeNAS服务器进行FTP访问。
SFTP有效,但FTP没有。例如,我创建了一个client
带有主文件夹的用户/mnt/raid-5x3/alpha/ftp/client1
但是当client1
尝试登录时,服务器返回530 login incorrect
并显示日志
Apr 19 20:53:51 whNAS proftpd[39911]: 192.168.1.99 ___ - notice: unable to use '~/' [resolved to '/mnt/raid-5x3/alpha/ftp/client1/']: Permission denied
Apr 19 20:53:51 whNAS proftpd[39911]: 192.168.1.99 ___ - chroot to '~/' failed for user 'client1': Operation not permitted
Apr 19 20:53:51 whNAS proftpd[39911]: 192.168.1.99 ___ - error: unable to set default root directory
我检查了权限:
root@whNAS /mnt/raid-5x3/alpha/ftp > ls -al
total 107
drwxrwxrwx 5 root whstaff 6 Apr 19 20:06 ./
drwxrwx--- 18 root whstaff 22 Apr 18 18:44 ../
drwxrwx--- 2 drew whstaff 4 Dec 12 2012 .AppleDouble/
-rw-rw---- 1 jaclyn whstaff 6148 Apr 18 15:53 .DS_Store
drwxrwxrwx 2 client1 whclients 10 Apr 19 20:06 client1/
drwxr-xr-x 2 guest whclients 10 Dec 11 2012 guest/