danzg
Contributor
- Joined
- Jun 18, 2011
- Messages
- 105
I'm trying to set up some client user account for ftp access to server.
SFTP works, but FTP does not. E.g., I created user "client1", with home folder "/mnt/raid-5x3/alpha/ftp/client1"
When client1 tries to log in, server returns "530 login incorrect" and log shows
Apr 19 20:53:51 wh NAS 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 wh NAS proftpd[39911]: 192.168.1.99 ___ - chroot to '~/' failed for user 'client1': Operation not permitted
Apr 19 20:53:51 wh NAS proftpd[39911]: 192.168.1.99 ___ - error: unable to set default root directory
Permissions:
root@wh NAS /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/
SFTP works, but FTP does not. E.g., I created user "client1", with home folder "/mnt/raid-5x3/alpha/ftp/client1"
When client1 tries to log in, server returns "530 login incorrect" and log shows
Apr 19 20:53:51 wh NAS 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 wh NAS proftpd[39911]: 192.168.1.99 ___ - chroot to '~/' failed for user 'client1': Operation not permitted
Apr 19 20:53:51 wh NAS proftpd[39911]: 192.168.1.99 ___ - error: unable to set default root directory
Permissions:
root@wh NAS /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/