PDA

View Full Version : Proftpd authentication


ProTrooper
31st August 2005, 20:57
I have installed proftpd but I don't quite know how to successfully log on. I can connect anonymously but not using a user I created. Using all default settings this is how it’s setup:

CentOS
Apache
PHP 4.4.0
MySQL
Proftpd

Added user: webadmin
Changed passwd
Modified /etc/passwd: webadmin:x:500:500::/var/www/html:/bin/false

Added to /etc/proftpd.conf:
DefaultRoot ~

chown webadmin /var/www/html

This is all it says in /log/messages:
FTP session opened.
PAM(webadmin): Authentication failure.
FTP session closed.

I know it is probably something simple I am forgetting. Any ideas?

till
31st August 2005, 21:12
I have installed proftpd but I don't quite know how to successfully log on. I can connect anonymously but not using a user I created. Using all default settings this is how it’s setup:

CentOS
Apache
PHP 4.4.0
MySQL
Proftpd

Added user: webadmin
Changed passwd
Modified /etc/passwd: webadmin:x:500:500::/var/www/html:/bin/false

Added to /etc/proftpd.conf:
DefaultRoot ~

chown webadmin /var/www/html

This is all it says in /log/messages:
FTP session opened.
PAM(webadmin): Authentication failure.
FTP session closed.

I know it is probably something simple I am forgetting. Any ideas?

Maybe this thread contains the solution:

http://www.howtoforge.com/forums/showthread.php?t=196&page=2&pp=10

ProTrooper
31st August 2005, 21:21
Forgot to mention, I also added the /etc/pam.d/ftp file and restarted. Same error message.

ProTrooper
1st September 2005, 17:25
Till, do you have any great resources that explains how to setup Proftp?

till
1st September 2005, 18:03
Till, do you have any great resources that explains how to setup Proftp?

Sorry, I dont know any. Can you post your proftpd.conf here or send it to me as a private message? I will try to compare it with my working configuration. Mine is from debian, but well see :)

ProTrooper
1st September 2005, 18:54
Sent PM. :)

falko
2nd September 2005, 21:11
Maybe your Proftpd is authenticating against a MySQL database instead of /etc/shadow?