Hi all,
I have a filesystem which I need to make available through ftp ( vsftpd ). I
have this as separate filesystem as it needs to be available through apache
and NFS also. It's our local mirror.
I've set up vsftpd and put a test directory in /var/ftp/pub and it works.
However I can't seem to get it to see the separate /mirrors filesystem.
I've tried using symlinks as below in /var/ftp/pub.
drwxr-xr-x 3 root root 4096 Jun 26 10:53 .
drwxr-xr-x 3 root root 4096 Jun 22 12:11 ..
-rw-r--r-- 1 root root 25 Jun 22 12:21 .message
drwxr-xr-x 2 root root 4096 Jun 22 15:25 TEST
lrwxrwxrwx 1 root root 8 Jun 26 10:53 mirrors -> /mirrors
I this case the TEST directory works but the mirrors directory does not.
ftp> cd mirrors
550 Failed to change directory.
I've also tried using mount --bind to remount the the /mirrors filesystem
as /var/ftp/pub/mirrors. When I do this I can see the contents
of /var/ftp/pub/mirrors
drwxr-xr-x 2 root root 4096 Jun 22 15:25 TEST
drwxr-xr-x 13 root root 4096 Jun 23 07:54 mirrors
ls -al /var/ftp/pub/mirrors/
drwxr-xr-x 13 root root 4096 Jun 23 07:54 .
drwxr-xr-x 4 root root 4096 Jun 26 11:04 ..
drwxr-xr-x 9 1000 1000 4096 May 18 00:19 centos
drwxr-xr-x 6 ftp 803 4096 Mar 15 13:11 config-linux
drwxr-xr-x 4 apache apache 4096 Sep 21 2006 custom-repos
However when I try to ftp to it I can't see the mirrors directory
-rw-r--r-- 1 ftp ftp 25 Jun 22 12:21 .message
drwxr-xr-x 2 ftp ftp 4096 Jun 22 15:25 TEST
Finally I've tried mounting it directly under /var/ftp/pub/mirrors
-rw-r--r-- 1 root root 25 Jun 22 12:21 .message
drwxr-xr-x 2 root root 4096 Jun 22 15:25 TEST
drwxr-xr-x 13 root root 4096 Jun 23 07:54 mirrors
But when I ftp into the box again I can't see the mirrors directory
ftp> ls
227 Entering Passive Mode (10,220,1,157,168,142)
150 Here comes the directory listing.
drwxr-xr-x 2 ftp ftp 4096 Jun 22 15:25 TEST
226 Directory send OK.
Is this a permissions problem or does vsftpd not allow separate filesystems to
be seen.
Regards,
Tony