LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-09-2008, 03:46 PM   #1
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Rep: Reputation: 33
ftp on Ubuntu in VMWare Blade Centre...login fails


I was running a bog-standard Debian box with mediawiki. It all ran very well. Then the Network Manager decides he wants me to move it onto a VMWare platform, so I installed it onto Ubunto Hearty Heron (VMWare recognises Ubuntu but doesn't recognise Debinan...driver issues, I think).

Mediawiki installs no problems, then I try to ftp some files onto the platform with plain ordinary ftp from a windows machine command line. I get the login authentication request, but whenever I try to authenticate, even with a valid login name, as soon as I enter the login name, and before the need for a password, I get thrown out with an error 550. I never get as far as the password request

OK, so I look at the logs and there's nothing much in there, so I go on the server and from a command window, I try to ftp to the same server...same problem.

So then I try on the server to ftp to 127.0.0.1, and I get the same problem.

The server and the ftp setup was done (as I have done dozens of times before) completely standard, using apt-get, with no errors. The only difference I see is that this is on a VMWare platform.

Heres the login attempt from the platform to itself:

root@linux01:/home/jim# ftp linux01
Connected to linux01.<co name>.uk.
220 linux01.<co name>.uk FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready.
Name (linux01:jim): jim
550 Authentication failure
Login failed.
ftp> quit
221 Goodbye.

and here's the log entry that generated:

root@linux01:/home/jim# tail /var/log/syslog
<stuff deleted>
Aug 9 21:40:53 linux01 in.ftpd[6284]: connect from 192.168.4.41 (192.168.4.41)
root@linux01:/home/jim#

(Yeah, genuinely, that's all it gave me!)


I've Googled till I'm blue in the face to no avail...what stupid trap have I fallen into? Any ideas?

Last edited by jimbo1954; 08-09-2008 at 03:47 PM.
 
Old 09-05-2008, 04:10 AM   #2
dialga86
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
Wink how i solved the same problem in my scenario

I had the same problem in while making an avnetppc board to act as a FTP server. that is, when i start the board and try to ftp from some other server, the login authentication will pop but when i give my user name it throws an "550 authentication error" without even accepting a password.

This may be due to the absence of the following .so files...
1)pam_ftp.so
2)pam_nologin.so
3)pam_rhosts_auth.so
4)pam_shells.so
5)pam_unix.so
6)pam_unix_acct.so
7)pam_unix_auth.so
8)pam_unix_session.so

you get these files for your VMWare platform, and create a directory name "security" under "lib" of your ramdisk image or NFS directory(depending on how you boot your VMWare) and place all the above files in that "security" directory(Note that you can soft link 6th,7th and 8th file with the 5th file as they are the one and the same). This solved the same problem in my case and hope this helps...

For cross checking use, /usr/lib/security in your general linux distro...

Last edited by dialga86; 09-05-2008 at 04:24 AM. Reason: better clearance
 
Old 09-08-2008, 03:57 AM   #3
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Original Poster
Rep: Reputation: 33
I had a look at /lib/security, and I have the following:

root@bhlinux01:/lib/security# ls -al
total 444
drwxr-xr-x 2 root root 4096 2008-07-02 11:21 .
drwxr-xr-x 16 root root 4096 2008-08-01 13:49 ..
-rw-r--r-- 1 root root 11812 2008-05-16 16:21 pam_access.so
-rw-r--r-- 1 root root 4744 2008-05-16 16:21 pam_debug.so
-rw-r--r-- 1 root root 2716 2008-05-16 16:21 pam_deny.so
-rw-r--r-- 1 root root 5624 2008-05-16 16:21 pam_echo.so
-rw-r--r-- 1 root root 11612 2008-05-16 16:21 pam_env.so
-rw-r--r-- 1 root root 6608 2008-05-16 16:21 pam_exec.so
-rw-r--r-- 1 root root 4584 2008-05-16 16:21 pam_faildelay.so
-rw-r--r-- 1 root root 11376 2008-05-16 16:21 pam_filter.so
-rw-r--r-- 1 root root 4292 2008-05-16 16:21 pam_ftp.so
-rw-r--r-- 1 root root 29484 2008-05-27 15:36 pam_gnome_keyring.so
-rw-r--r-- 1 root root 10180 2008-05-16 16:21 pam_group.so
-rw-r--r-- 1 root root 7308 2008-05-16 16:21 pam_issue.so
-rw-r--r-- 1 root root 5624 2008-05-16 16:21 pam_keyinit.so
-rw-r--r-- 1 root root 7724 2008-05-16 16:21 pam_lastlog.so
-rw-r--r-- 1 root root 12628 2008-05-16 16:21 pam_limits.so
-rw-r--r-- 1 root root 9272 2008-05-16 16:21 pam_listfile.so
-rw-r--r-- 1 root root 4684 2008-05-16 16:21 pam_localuser.so
-rw-r--r-- 1 root root 4024 2008-05-16 16:21 pam_loginuid.so
-rw-r--r-- 1 root root 7864 2008-05-16 16:21 pam_mail.so
-rw-r--r-- 1 root root 16096 2008-05-16 16:21 pam_mkhomedir.so
-rw-r--r-- 1 root root 3780 2008-05-16 16:21 pam_motd.so
-rw-r--r-- 1 root root 19904 2008-05-16 16:21 pam_namespace.so
-rw-r--r-- 1 root root 4336 2008-05-16 16:21 pam_nologin.so
-rw-r--r-- 1 root root 3056 2008-05-16 16:21 pam_permit.so
-rw-r--r-- 1 root root 9044 2008-05-16 16:21 pam_rhosts_auth.so
-rw-r--r-- 1 root root 4084 2008-05-16 16:21 pam_rhosts.so
-rw-r--r-- 1 root root 3172 2008-05-16 16:21 pam_rootok.so
-rw-r--r-- 1 root root 5632 2008-05-16 16:21 pam_securetty.so
-rw-r--r-- 1 root root 13416 2008-05-16 16:21 pam_selinux.so
-rw-r--r-- 1 root root 4080 2008-05-16 16:21 pam_shells.so
-rw-r--r-- 1 root root 9756 2008-05-16 16:21 pam_stress.so
-rw-r--r-- 1 root root 11368 2008-05-16 16:21 pam_succeed_if.so
-rw-r--r-- 1 root root 9284 2008-05-16 16:21 pam_tally.so
-rw-r--r-- 1 root root 8588 2008-05-16 16:21 pam_time.so
-rw-r--r-- 1 root root 6208 2008-05-16 16:21 pam_umask.so
lrwxrwxrwx 1 root root 11 2008-08-01 12:45 pam_unix_acct.so -> pam_unix.so
lrwxrwxrwx 1 root root 11 2008-08-01 12:45 pam_unix_auth.so -> pam_unix.so
lrwxrwxrwx 1 root root 11 2008-08-01 12:45 pam_unix_passwd.so -> pam_unix.so
lrwxrwxrwx 1 root root 11 2008-08-01 12:45 pam_unix_session.so -> pam_unix.so
-rw-r--r-- 1 root root 47372 2008-05-16 16:21 pam_unix.so
-rw-r--r-- 1 root root 8192 2008-05-16 16:21 pam_userdb.so
-rw-r--r-- 1 root root 3772 2008-05-16 16:21 pam_warn.so
-rw-r--r-- 1 root root 5028 2008-05-16 16:21 pam_wheel.so
-rw-r--r-- 1 root root 12792 2008-05-16 16:21 pam_xauth.so


so it looks like I have the right files in the right place....

but any other suggestions would be good...I'm running out of hair to tear out. I have tried reinstalls, and various different ftp servers, including proftpd, ftpd and ftpd-ssl, but they all behave the same so I believe its a problem specific to the blade server....HELP!
 
Old 09-24-2008, 03:20 AM   #4
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Original Poster
Rep: Reputation: 33
Solved

Problem was that unknown to me, the install process installed ftp-ssl, which was intercepting traffic for the ftp server and causing the problem. I removed ftp-ssl, de-installed all other ftp variants and reinstalled proftpd, and everything worked just fine!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Proftpd 1.3.0 under ubuntu : "530 Login incorrect" displayed on ftp client Hanzo Linux - Networking 3 07-24-2008 08:02 PM
Where can i find the control centre in Ubuntu/kubuntu? BeatsWindows Linux - Newbie 3 12-29-2005 10:04 AM
Mandrake Control Centre Fails to Load SharkBait Mandriva 5 06-09-2005 08:53 AM
FTP Fails on Successful Login machineghost Linux - Networking 5 02-27-2005 11:00 AM
Mandrake Control Centre tries to start automatically everytime I login pwilkie Mandriva 3 02-27-2005 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:22 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