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
On 6/26/07, Tony Molloy tony.molloy@ul.ie wrote:
Is this a permissions problem or does vsftpd not allow separate filesystems to be seen.
Have you looked in the log files for errors? Are you using selinux? If you're using selinux, you'll have to adjust the contexts so that vsftpd has access to /mirrors.
On Tuesday 26 June 2007 13:16, Jim Perrin wrote:
On 6/26/07, Tony Molloy tony.molloy@ul.ie wrote:
Is this a permissions problem or does vsftpd not allow separate filesystems to be seen.
Have you looked in the log files for errors? Are you using selinux? If you're using selinux, you'll have to adjust the contexts so that vsftpd has access to /mirrors.
That's probably it. The SELinux problem strikes again.
I should have thought of that. Thanks.
Tony
On Thursday 28 June 2007 08:58, Feizhou wrote:
That's probably it. The SELinux problem strikes again.
If you hate SELinux that much, just turn it off.
I don't "hate" it. I just forget that it causes problems sometimes when it's not configured properly.
Tony
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Tony Molloy wrote:
On Thursday 28 June 2007 08:58, Feizhou wrote:
That's probably it. The SELinux problem strikes again.
If you hate SELinux that much, just turn it off.
I don't "hate" it. I just forget that it causes problems sometimes when it's not configured properly.
:) 'The SELinux problem' gave an entirely different impression.
On Thursday 28 June 2007 10:18, Feizhou wrote:
Tony Molloy wrote:
On Thursday 28 June 2007 08:58, Feizhou wrote:
That's probably it. The SELinux problem strikes again.
If you hate SELinux that much, just turn it off.
I don't "hate" it. I just forget that it causes problems sometimes when it's not configured properly.
:) 'The SELinux problem' gave an entirely different impression.
Not meant like that. It's just that I always forget to check SELinux when I have these problems and go checking lots of other things. Instead what I should do is set SELinux to permissive and make sure it's not a SELinux mis-configuration.
Tony
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos