Click to See Complete Forum and Search --> : FTP not working


jeffpoulsen
10-22-2002, 06:16 AM
Its a long story but I installed a new hd to hold the /var/ftp folder. Setting up and mounting the drive was not to bad. I mounted it with a new directory called /new. Then copied the entire /var folder to /new. Then unmounted both drives and then mounted the new hd /dev/hdc1 with /var. It seemed to go ok. I can see activity on the new hd when I access files etc. But now my ftp server is not working. I restarted the service xinetd without any error messages. I am not sure whats up. Can you help me to fix this problem. Any help is greatly appreciated. Thanks jeff

cowanrl
10-22-2002, 12:37 PM
Make sure that the group assigned to /var/ftp/pub is the ftp group. The command:

ls -l /var/ftp/

should show something like this:

[root@vipr-181 ftp]# ll
total 16
drwxr-xr-x 2 root root 4096 Dec 10 2001 bin
drwxr-xr-x 2 root root 4096 Dec 10 2001 etc
drwxr-xr-x 2 root root 4096 Dec 10 2001 lib
drwxrwsr-x 32 root ftp 4096 Oct 15 14:42 pub

If the group assigned to pub is root, you need to change it with:

chgrp ftp /var/ftp/pub

That may be your problem.

jeffpoulsen
10-22-2002, 05:33 PM
I did a ls -l /var/ftp/ and the response was
d--x--x--x 2 root root 4096 oct 18 21:18 backup
more of the same for /bin /etc /ftp /lib
drwr-sr-x 3 ftp ftp 4096 sep 20 20:53 pub

So I think that the /ftp folder has the /ftp/pub has ftp client assigned to it. Should it also have root?

jeffpoulsen
10-23-2002, 09:50 PM
Can anyone help?