PureFTPd

Discussion in 'HOWTO-Related Questions' started by iyeat, Dec 17, 2007.

  1. iyeat

    iyeat New Member

    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
     
  2. falko

    falko Super Moderator ISPConfig Developer

    In which directory should the directories be created? Can you post the output of
    Code:
    ls -la /path/to/that/directory
    ?
     
  3. iyeat

    iyeat New Member

    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.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Looks ok. Does Pureftpd run under the websites user?
     
  5. iyeat

    iyeat New Member

    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
     
  6. falko

    falko Super Moderator ISPConfig Developer

  7. iyeat

    iyeat New Member

    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.
     
    Last edited: Jan 2, 2008
  8. falko

    falko Super Moderator ISPConfig Developer

    I guess it's a problem with the permissions/ownership of your websites folder.
     

Share This Page