LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-24-2012, 01:38 AM   #1
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Rep: Reputation: 3
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!
 
Old 02-24-2012, 02:58 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Try logging in to the ftp with the same username/password you use to access your system.
 
Old 02-24-2012, 03:09 AM   #3
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
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.
 
Old 02-24-2012, 03:16 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

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

Quote:
# sudo passwd ftpuser
 
Old 02-24-2012, 03:29 AM   #5
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Okay I tried that but no use.


Still the same.
 
Old 02-24-2012, 03:37 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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.

Last edited by Satyaveer Arya; 02-24-2012 at 03:38 AM.
 
1 members found this post helpful.
Old 02-24-2012, 03:43 AM   #7
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Yes I read that before and tried it already but no use.
 
Old 02-24-2012, 03:52 AM   #8
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

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

Quote:
UseFtpUsers off
Hope this helps this time...

Last edited by Satyaveer Arya; 02-24-2012 at 03:59 AM.
 
Old 02-24-2012, 04:02 AM   #9
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
Tried and still the same.
 
Old 02-24-2012, 04:08 AM   #10
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
USER 1stUser (Login failed): Invalid shell: '/sbin/nologin'
Try changing the shell for user 1stUser.
 
Old 02-24-2012, 04:11 AM   #11
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
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.
 
Old 02-24-2012, 04:30 AM   #12
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Check whether the proftpd service is running or not?
 
Old 02-24-2012, 05:21 AM   #13
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
It is running.
 
Old 02-25-2012, 01:38 AM   #14
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
So anyone regarding this?
 
Old 02-26-2012, 03:13 AM   #15
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Original Poster
Rep: Reputation: 3
So if anyone has had the issue or solved it before? Please help out.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
debian etch vs debian for amd64 sunils1973 Linux - Newbie 4 09-18-2007 03:07 PM
grub issues: dual boot Debian i386 & Debian amd64 ErrorBound Debian 1 03-09-2007 07:41 PM
Debian for AMD64 logosys Debian 3 07-18-2005 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration