Estou tentando configurar algumas contas de usuário cliente para acesso FTP ao nosso servidor FreeNAS.
O SFTP funciona, mas o FTP não. Por exemplo, eu criei um usuário client
, com pasta inicial/mnt/raid-5x3/alpha/ftp/client1
Mas quando client1
tenta efetuar login, o servidor retorna 530 login incorrect
e o log mostra
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
Eu verifiquei as permissões:
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/