ProFTPd + MySQL - 530 Login incorrect Deploying a FTP server using ProFTPd and MySQL is quite simple. Debugging it is a little harder :)
I wanted to move my proftpd+mysql server from old box to new box (not dump-restore cause binaries are compiled for different cpus and I really don't need the headakes). These are the steps I followed:
1. Install proftpd and mysql50-server on new box
On new box I installed proftpd and mysql-server from ports (/usr/ports/ftp/proftpd and /usr/ports/databases/mysql50-server and the make install clean)
And copy proftpd config file (/usr/local/etc/proftpd.conf) from old server to new one.
2. Backup mysql database (called proftp) from old box and restore it to new box
Read How to copy a mysql database using mysqldump on for more instructions how to create the mysql database backup and use scp/rsync to copy it from one server to another (new one to old one).
3. Start ProFTPd
$ /usr/local/etc/rc.d/proftpd start
then ftp to localhost and test:
$ ftp localhost [root@www ~]# ftp localhost Trying ::1... Trying 127.0.0.1... Connected to localhost. 421 Service not available, remote server has closed connection. ftp> ^D
At this time I was convinced that there was something really not working with either my proftpd config file, either mysql database which contains proftp tables.
$ truss /usr/local/etc/rc.d/proftpd start (lots of output)
Seems that proftpd cannot connect to the mysql database. I then remember that I had to grant access to proftpd database to the user that proftpd uses to connect:
mysql> GRANT ALL PRIVILEGES ON proftpd.* to 'ftp'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
The last 20-30 lines are crucial. They're telling me that the permissions on home directory of the user myuser that I'm trying to login with are wrong (umask is 027 so proftpd was unable to even read the home dir).
I fixed this problem and proftpd+mysql is migrated and ready for, let's say, production :). See following How-TOs for deploying a ProFTPd + MySQL server: http://www.khoosys.net/single.htm?ipg=848 http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-SQL.html http://www.howtoforge.com/proftpd_mysql_virtual_hosting
Hello, Guest ! You can Login or Register to www.ivorde.ro!
Post comment:
2 comment(s) to ProFTPd + MySQL - 530 Login incorrect:
1. Re: ProFTPd + MySQL - 530 Login incorrect
ghhnnn by kgikyik
at December 03rd, 2010 - 08:54
hhgjgjjiuigkv0gkklb;ggk.ghghhvbgvbugo hhhhhhy yjyjy jyjyjjj grf rr rfed ed g yjy tg r eeeefeefefefw
2. Re: ProFTPd + MySQL - 530 Login incorrect
Before starting proftpd in debug mode by mandrei
at December 07th, 2007 - 15:45
You need to stop your proftpd before starting it in debug mode or else proftpd -nd6 will display some error regarding binding to port 21 (because port 21 is already taken by proftpd standard) and will be of no help.
Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.