Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st January 2012, 18:54
todgerme todgerme is offline
Member
 
Join Date: Dec 2005
Location: Belfast, Northern Ireland
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
Default CreateHomeDir doesn't work with my Pure-FTP install

I've followed the Debian Lenny howto and I can't get auto creation of home directories to work. This is actually an old problem but I need to get it resolved as it's never worked for me in any Debian from Sarge - Squeeze!

The user in the MYSQL database is say /ftp/directory with ftpuser:ftpgroup as UID:GID

The /ftp directory is owned by ftpuser:ftpgroup

If /ftp/directory doesn't exist, the login fails with:

220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 17:32. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (80.95.186.225:root): exampleuser
331 User exampleuser OK. Password required
Password:
421 Service not available, remote server has closed connection
Login failed.
No control connection for command: No such file or directory

If I create the directory it works fine assuming I put the right permissions on the directory.

root@vs:/# cat /etc/pure-ftpd/conf/CreateHomeDir
yes

The FTP server is inside an openvz virtual container but even installs not within the virtual container don't work either for me. Everything else works fine, for example chroot.

How can I debug why the server won't create directories? Does it need certain commands available for example?

This is what syslog says:

Jan 31 17:30:28 vs pure-ftpd: (?@) [ERROR] Home directory not available - aborting

Last edited by todgerme; 31st January 2012 at 18:58.
Reply With Quote
Sponsored Links
  #2  
Old 1st February 2012, 17:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by todgerme View Post
The FTP server is inside an openvz virtual container but even installs not within the virtual container don't work either for me. Everything else works fine, for example chroot.
Can you try this on the host system?

Code:
VPSID=101
for CAP in CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE
do
  vzctl set $VPSID --capability ${CAP}:on --save
done
Make sure you use the correct container ID.
__________________
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
pure ftp don´t work cyprus Installation/Configuration 15 4th November 2011 16:34
How can I get PHP to work after ISPConfig Install alvadore Installation/Configuration 22 30th March 2008 15:57
WEB UI FTP not working gimhan90 Installation/Configuration 2 16th March 2006 08:03
Website users? ctroyp General 25 6th January 2006 18:02
FTP 101 the basics koegies Installation/Configuration 7 17th November 2005 15:55


All times are GMT +2. The time now is 17:29.


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