LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Debian 6 AMD64 and ProFTPD (https://www.linuxquestions.org/questions/linux-server-73/debian-6-amd64-and-proftpd-930999/)

AsadMoeen 02-24-2012 01:38 AM

Debian 6 AMD64 and ProFTPD
 
I've always used Debian 5 before where all packages worked for me without any issues but just today I got a new Debian 6 server as Debian 5 was discontinued.

On Debian 5, I just installed the ProFTPD server and it worked for all my users without me needing to change anything in the config.

But on Debian 6, this is not the case. It just gives me the following errors,

Code:

Error 530 - Login Incorrect
Or sometimes the connection times out

This is my /var/log/proftpd/proftpd.log

Code:

Feb 24 17:25:01 gsh proftpd[4757] MyServerName (MyAccessIP[MyAccessIP]): Preparing to chroot to directory '/home/2ndUser'
Feb 24 17:25:01 gsh proftpd[4757] MyServerName (MyAccessIP[MyAccessIP]): USER 2ndUser: Login successful.
Feb 24 17:25:05 gsh proftpd[4757] MyServerName (MyAccessIP[MyAccessIP]): FTP session closed.
Feb 24 17:27:36 gsh proftpd[4325] MyServerName: ProFTPD killed (signal 15)
Feb 24 17:27:36 gsh proftpd[4325] MyServerName: ProFTPD 1.3.3a standalone mode SHUTDOWN
Feb 24 17:27:38 gsh proftpd[4920] MyServerName: ProFTPD 1.3.3a (maint) (built Sun Nov 13 2011 22:40:44 UTC) standalone mode STARTUP
Feb 24 17:28:09 gsh proftpd[4980] MyServerName (MyAccessIP[MyAccessIP]): FTP session opened.
Feb 24 17:28:10 gsh proftpd[4980] MyServerName (MyAccessIP[MyAccessIP]): USER 1stUser (Login failed): Invalid shell: '/sbin/nologin'
Feb 24 17:28:11 gsh proftpd[4980] MyServerName (MyAccessIP[MyAccessIP]): FTP session closed.


I have seen that the Debian 6 proftpd.conf file exactly matches with the Debian 5 file but on Debian 6 it gives errors so the issue only seems to be in Debian 6 or proftpd version.


Debian 6 AMD64 is running 1.3.3a
Debian 5 32bit is running 1.3.1


What seems to be the issue? Thanks!

Satyaveer Arya 02-24-2012 02:58 AM

Try logging in to the ftp with the same username/password you use to access your system.

AsadMoeen 02-24-2012 03:09 AM

The passwords have been entered exactly for all users because they're working fine with SFTP or SSH.

I use root to Login to my system.

Satyaveer Arya 02-24-2012 03:16 AM

Try to set the password of ftpuser again and then try logging in again:

Quote:

# sudo passwd ftpuser

AsadMoeen 02-24-2012 03:29 AM

Okay I tried that but no use.


Still the same.

Satyaveer Arya 02-24-2012 03:37 AM

For some reason try to comment out:
Quote:

# Set the user and group that the server normally runs at.
User ftp
Group nogroup
to
Quote:

# Set the user and group that the server normally runs at.
#User ftp
#Group nogroup
Once this completely fixed the problem for my friend. Try your luck and let me know. :)

AsadMoeen 02-24-2012 03:43 AM

Yes I read that before and tried it already but no use.

Satyaveer Arya 02-24-2012 03:52 AM

In the proftpd.conf file, try to set(or add) the line:

Quote:

UseFtpUsers off
Hope this helps this time...

AsadMoeen 02-24-2012 04:02 AM

Tried and still the same.

Satyaveer Arya 02-24-2012 04:08 AM

Quote:

USER 1stUser (Login failed): Invalid shell: '/sbin/nologin'
Try changing the shell for user 1stUser.

AsadMoeen 02-24-2012 04:11 AM

I just created that user for test but I don't really know how to change the shell. Others should be working if shell had some issue. 2nd, 3rd and 4th FTP user all give same error except the first one. Rest of them time out while 1st user probably due to the shell gives 530 error.


Also, I see some weird file /etc/proftpd/blacklist.dat which I haven't seen before.

Some encrypted file it is.

Satyaveer Arya 02-24-2012 04:30 AM

Check whether the proftpd service is running or not?

AsadMoeen 02-24-2012 05:21 AM

It is running.

AsadMoeen 02-25-2012 01:38 AM

So anyone regarding this?

AsadMoeen 02-26-2012 03:13 AM

So if anyone has had the issue or solved it before? Please help out.


All times are GMT -5. The time now is 04:04 AM.