Problem with Restricted FTP

I've created a specific FTP user restricted to only it's home dir. Eg as below:

User: ftp01
Home Dir: /home/ftp01

As I want this user to only able to access his home dir only, I've created /etc/ftpaccess.ctl and refresh the inetd daemon:

useronly: ftp01
readwrite: /home/ftp01

It works! But the problem here is:

  1. I cannot view the content of /home/ftp01 everytime I ftp to that server(using filezilla eg)
  2. When i create folder using filezilla, the folder is there, but i cannot view the folder after refresh.

Appreciate any helps that i can get.
Thanks all.

Shiniraz

It looks like you have set up a "chroot"-ed environment. You need to provide some basic utilities ftp relies on in a path where they are accessible from within the chroot-environment in this case. Create a directory /home/ftp01/bin where at least a copy of /usr/bin/ls and some other programs reside (see details on the manpage of ftp and chroot respectively.

If you forbid access to everything outside /home/ftp then also the access to some basic system libraries are forbidden - this is why a chrooted environment won't work without these copies.

I hope this helps.

bakunin