#1  
Old 17th December 2007, 11:06
iyeat iyeat is offline
Member
 
Join Date: Dec 2007
Posts: 43
Thanks: 4
Thanked 1 Time in 1 Post
Default PureFTPd

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
Reply With Quote
Sponsored Links
  #2  
Old 18th December 2007, 16:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

In which directory should the directories be created? Can you post the output of
Code:
ls -la /path/to/that/directory
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th December 2007, 19:55
iyeat iyeat is offline
Member
 
Join Date: Dec 2007
Posts: 43
Thanks: 4
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
  #4  
Old 19th December 2007, 17:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Looks ok. Does Pureftpd run under the websites user?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 21st December 2007, 17:54
iyeat iyeat is offline
Member
 
Join Date: Dec 2007
Posts: 43
Thanks: 4
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #6  
Old 22nd December 2007, 15:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Did you use this tutorial to set up PureFTPd? http://www.howtoforge.com/virtual_ho..._mysql_fedora7
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 2nd January 2008, 20:40
iyeat iyeat is offline
Member
 
Join Date: Dec 2007
Posts: 43
Thanks: 4
Thanked 1 Time in 1 Post
Default

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 by iyeat; 2nd January 2008 at 22:54.
Reply With Quote
  #8  
Old 3rd January 2008, 15:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
 
Default

Quote:
Originally Posted by iyeat
For some reason, the auto directory creation fails when the directory was inside my 'websites' folder.
I guess it's a problem with the permissions/ownership of your websites folder.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PureFTPd and MySQL: error exit status 252 marsvin Server Operation 20 13th May 2009 12:03
pureftpd and apache2 file permissions thesquib HOWTO-Related Questions 1 29th November 2007 15:40
Fedora 5 pureftpd mysql authentication error unclecameron HOWTO-Related Questions 8 19th September 2006 15:25
PureFTPD and Mysql Questions chrchcol Server Operation 1 3rd September 2006 23:07
PureFTPD question Tortanick Server Operation 4 22nd April 2006 16:36


All times are GMT +2. The time now is 22:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.