Greetings, I've got pureftpd running on Fedora 8. It works beautifully for the most part. I'm having one issue where when I create a new user, and the user's home directory is not yet created, I get an error that the "Server Closed Connection" when I attempt to login with that user. The CreateHomeDir option is set to yes in the conf file. Logging in with users who have home directories works correctly. I haven't been able to find any type of log file to indicate the error. I also do not have any problems uploading & deleting files for users whose home already exists, so that leads me to think that it's not a uid/gid problem. Can someone point me in the right direction on log files that might indicate what is going on? It seems like not very much is logged in this software. Also of note, I've installed the RPM version of pureftpd. Thanks, Caio
In which directory should the directories be created? Can you post the output of Code: ls -la /path/to/that/directory ?
Code: [cjames@echo /]$ ls -la /home/websites/ total 36 drwxr-xr-x 5 websites websites 4096 2007-12-10 18:08 . drwxr-xr-x 5 root root 4096 2007-12-08 23:52 .. -rw-r--r-- 1 websites websites 33 2007-12-08 23:52 .bash_logout -rw-r--r-- 1 websites websites 176 2007-12-08 23:52 .bash_profile -rw-r--r-- 1 websites websites 124 2007-12-08 23:52 .bashrc drwxr-xr-x 2 websites websites 4096 2007-10-17 09:52 .gnome2 drwxr-xr-x 2 websites websites 4096 2007-12-09 21:46 installers drwxr-xr-x 2 websites websites 4096 2007-12-10 18:08 jassoc.com I created the "jassoc.com" directory to check to see if a user could login successfully if their home directory already existed. I was able to.
It's running as root.... Code: [root@echo ~]# ps aux | grep pure root 14216 0.0 0.0 4044 680 pts/0 S+ 08:53 0:00 grep pure root 26801 0.0 0.0 9744 780 ? Ss Dec17 0:00 pure-ftpd (SERVER) Should I change it to run as the "websites" user? Caio
Did you use this tutorial to set up PureFTPd? http://www.howtoforge.com/virtual_hosting_with_pureftpd_and_mysql_fedora7
Yes, I did... and I figured out the problem... For some reason, the auto directory creation fails when the directory was inside my 'websites' folder. Creating the ftp root folder inside /home was the only solution to get this to work... /home/websites generated the error. I'd like to put my ftp roots inside /home/websites, but it's only a minor issue having them in the /home folder.