I'm trying to create an FTP user that would have only access to a particular dir (/var/ftp/themeeditor
). Most of the setup seems to work except that sshd complains about the ownership of the directory with the following error:
fatal: bad ownership or modes for chroot directory component "/var/ftp/"
However, as far as I understand the directories have the right ownership, they are owned by root and are not world-writable:
bitnami@xxx:/var/ftp$ ls -ld /var
drwxr-xr-x 13 root root 4096 Aug 8 09:31 /var
bitnami@xxx:/var/ftp$ ls -ld /var/ftp/
drwxrwxr-x 3 root root 4096 Aug 8 09:31 /var/ftp/
bitnami@xxx:/var/ftp$ ls -ld /var/ftp/themeeditor/
drwxr-xr-x 13 root root 4096 Aug 8 09:33 /var/ftp/themeeditor/
Any idea what could be the issue?