1752768 Members
5031 Online
108789 Solutions
New Discussion юеВ

ftp issue

 
Rick Garland
Honored Contributor

ftp issue

Got RH 6.0 running as a mail gateway to the company. I want to get in a do some ftp of files to another HP-UX server. I am able to connect to the Linux server and all. When I try to login as myself to the Linux server, I get error 530, login incorrect. I am able to telnet to the system with my login parameters, I am not in the /etc/ftpusers file, I added myself to the /etc/ftphosts file, made sure I am in the /etc/passwd file,
etc. There is something I am missing to be able to login to the Linux server.
Any and all help is greatly appreciated!

Rick
11 REPLIES 11
JG_3
New Member

Re: ftp issue

Verify ftp working correctly:
Can you get there from another box ?
Can you ftp from telnet prompt on Linux box to itself ?
Can another user get there, anonymous ?

These should pin point problem - please post results of above if still a problem.

Jon Gerdes
Kofi ARTHIABAH
Honored Contributor

Re: ftp issue

make sure that your login shell is defined (specified) in the /etc/shells file

also check your /var/log/secure and /var/log/messages for tell-tale messages.
nothing wrong with me that a few lines of code cannot fix!
Rick Garland
Honored Contributor

Re: ftp issue

The ftp is running (if it wasn't, I don't believe I would get the ftp login prompt)
Cannot ftp from another box
Cannot ftp from the telnet session on the Linux box
Cannot anonymous ftp
The /etc/shells is OK
The /var/log/messages file states the following:
FTP LOGIN REFUSED (name in /etc/ftphosts) FROM [IP address],

Not sure why the ftphosts file is listed in the messages. I used an example entry from the /usr/doc/.../ftphosts file and specified allow with the node name and IP address.
There is something out there preventing ftp logins, but what?
Kofi ARTHIABAH
Honored Contributor

Re: ftp issue

Is it possible to publish what you have in your /etc/ftphosts file?
nothing wrong with me that a few lines of code cannot fix!
Kofi ARTHIABAH
Honored Contributor

Re: ftp issue

Rick:

You might also want to check the following:

1. Do you have /etc/nsswitch.conf configured correctly (it might be that ftpd is trying to do a reverse name lookup on the IP address of the host you are connecting from)

2. Do you have identd configured in your /etc/inetd.conf? (on both machines)

3. If all fails, try disabling the ftphosts and check the messages file for tell-tale messages.

Good luck.

Kofi
nothing wrong with me that a few lines of code cannot fix!
Rick Garland
Honored Contributor

Re: ftp issue

The /etc/ftphosts file is in the following format:
allow

I am a little confused. Been through the man pages and the RH book (the one over 1000 pages).
Kofi ARTHIABAH
Honored Contributor

Re: ftp issue

/etc/ftphosts looks right to me... just another couple of thoughts.

-do you have /etc/hosts.allow or /etc/hosts.deny configured?

2- try manually talking to the ftp daemon as follows:

[root@host /etc]# telnet localhost ftp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 hq.seertec.com FTP server (Version wu-2.4.2-academ[BETA-15](1) Sat Nov 1 03:08:32 EST 1997) ready.
user username
331 Password required for arthiak.
pass thisandthat
530 Login incorrect.
user arthiak
331 Password required for arthiak.
pass correctpasswd
230 User arthiak logged in.
help
214-The following commands are recognized (* =>'s unimplemented).
USER PORT STOR MSAM* RNTO NLST MKD CDUP
PASS PASV APPE MRSQ* ABOR SITE XMKD XCUP
ACCT* TYPE MLFL* MRCP* DELE SYST RMD STOU
SMNT* STRU MAIL* ALLO CWD STAT XRMD SIZE
REIN* MODE MSND* REST XCWD HELP PWD MDTM
QUIT RETR MSOM* RNFR LIST NOOP XPWD
214 Direct comments to root@localhost.

quit
221 Goodbye.
Connection closed by foreign host.

could you post what you get from the above transaction. Note that you will have to modify the output not to send your passwd as it will appear in cleartext.
nothing wrong with me that a few lines of code cannot fix!
Rick Garland
Honored Contributor

Re: ftp issue

Did the telnet localhost ftp and got the following output:

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.

220 FTP server (Version wu-2.4.2-VR17(1) Mon Apr 19 09:21:53 EDT 1999) ready.

user

331 Password required for

pass

530 Login incorrect.

Without ability to login via ftp, cannot go any farther. Can do the login sequence via telnet and all works.
Kofi ARTHIABAH
Honored Contributor

Re: ftp issue

Might it be that you are root (or root equivalent uid?)

I just tried to recreate the prbl. and was able to do it by setting being included in the /etc/ftpusers file (you might want to make sure that your username or equivalent uid is NOT listed in /etc/ftpusers)

nothing wrong with me that a few lines of code cannot fix!