1827519 Members
2612 Online
109965 Solutions
New Discussion

ftp error

 
BrianDoyle
Trusted Contributor

ftp error

Hi,
When trying to ftp(using root) from my laptop to a HPUX server i get:
530 Login incorrect.
Login failed.

I have no trouble ftp'ing to it from a server in the same in the same subnet. I just cant connect directly.

There's no ftpusers file. A /etc/shells file exists.

In /etc/services:
ftp-data 20/tcp # File Transfer Protocol (Data)
ftp 21/tcp # File Transfer Protocol (Control)
(i.e. not commented out)

netstat -a |grep ftp
tcp 0 0 *.ftp *.* LISTEN

It's a Trusted System running 11.31.
What might i be forgetting??

Regards,
Brian
21 REPLIES 21
BrianDoyle
Trusted Contributor

Re: ftp error

I checked inetd.conf and tftp was hased out so ive unhashed it. There is a user account for tftp.

On the other trusted systems in the subnet i dont have a problemm with ftp.
So this has me confused....
Torsten.
Acclaimed Contributor

Re: ftp error

TFTP has nothing to do with FTP.

If the connection and login is working from another system to your server, I would guess the problem is on your PC (NUM on or different keyboard layout?).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
BrianDoyle
Trusted Contributor

Re: ftp error

hi tosten,
thanks for the reply.

From a DOS prompt, Im able to ftp to any other of the servers so i dont think it's the PC. Ive tried to connect from other machines and its the same.
Tim Nelson
Honored Contributor

Re: ftp error

Can you ftp to this server as a different user other than root ? This would at least prove ftp services are working from the subnet your laptop is on.

If not, look in /var/adm/inetd.sec. This file controls what IPs/subnets services are allowed to. Someone would have purposefully edited this file as by default all services to all subnets is allowed.

Torsten.
Acclaimed Contributor

Re: ftp error

Have a look into the syslog file for related messages. This may help too.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Jash_1
Frequent Advisor

Re: ftp error

Did you restart inetd after unhashing ftp?

inetd -c

Or kill the pid and restart.

Just a thought.
If I can, I will!
BrianDoyle
Trusted Contributor

Re: ftp error

Hi,

Yes, i did inetd -c after i unhashed ftp. Still the same.

There's no var/adm/inetd.sec file on any of the servers and no mention of it in the syslog.
Jash_1
Frequent Advisor

Re: ftp error

Have you checked the resolv.conf file is the same as the other servers and that it has a default gateway defined.
If I can, I will!
Torsten.
Acclaimed Contributor

Re: ftp error

Do you have a ftpaccess or ftpusers file in /etc/ftpd ?


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: ftp error

If you need a more secure (!) "workaround", consider to use another client application like filezilla on your PC and connect via sftp or scp to the server. I'm sure this will work.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
BrianDoyle
Trusted Contributor

Re: ftp error

Hi guys,

/etc/resolv.conf has a nameserver and the gateway is correct (in netconf)

There's no ftpaccess or ftpusers file in /etc/ftpd

I'd really like to find out why this is not working befoer i use ftp software.
Its a strange one.....
BrianDoyle
Trusted Contributor

Re: ftp error

I can telnet to the server.....just cant connect with ftp.
Torsten.
Acclaimed Contributor

Re: ftp error

1) per default all ftp related actions (login) are logged into syslog.

Open another session to the server and run

# tail -f /var/adm/syslog/syslog.log
and watch it while you try to connect.

2) it would make sense (and probably somebody already did it) on a secured system to restrict or even disable ftp and telnet daemons at all for security reasons.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
BrianDoyle
Trusted Contributor

Re: ftp error

tail -f /var/adm/syslog/syslog.log
It doesnt show anything new in the past 2 days, even as I try to connect via ftp or even telnet/ssh etc, nothing logged.....

Logging must be outputted to another file but how can I find out?

# more /etc/syslog.conf
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
Tim Nelson
Honored Contributor

Re: ftp error

Let's start over.

While ftp'ing you are getting a login and password prompt but end up with the 530 login incorrect error.

This means ftp is running and working normally. Again, try as a different user other than root to test.

Also, if you have no entries for the ftp connections in syslog.log then tack on a "-l" (el) at the end of the ftpd line in /etc/inetd.conf and inetd -c to re-read the conf. This will at least put some entries in the syslog.log and we will take it from there.

If you still do not see some ftp connection info in syslog.log then just maybe you are not connecting to the server you think you are ?



BrianDoyle
Trusted Contributor

Re: ftp error

hi tim,

I believe the cause is it being a trusted system and there's some parameter i havent modified to allow ftp through.

My inetd.conf currently has
ftp stream tcp6 nowait root /usr/lbin/ftpd ftpd -l
so i was expecting logging but nothing at all in the syslog.
Siju Vadakkan
Trusted Contributor

Re: ftp error

I think it is becz ur password contains special characters like @,#. try a password without @and #.
BrianDoyle
Trusted Contributor

Re: ftp error

hi
there are no characters like that in the passwords
Davis Paul
Valued Contributor

Re: ftp error

Hi,
Please check the file /var/adm/inetd.sec for any ftp restriction....
Regards,
Davis Paul.

BrianDoyle
Trusted Contributor

Re: ftp error

Like i said previously, theres no inetd.sec file

Still unsure what the cause is but i've got a workaround so that'll do.
Many thanks to all who contributed
Ramkumar Srinivasan
New Member

Re: ftp error

Make sure you have the /etc/ftpd/ftpaccess file.

[/home/apps/oracle/admin/scripts]-bi> ll /etc/ftpd/
total 32
dr-xr-xr-x 2 bin bin 96 Feb 13 2008 ftp-exec
-rw-r--r-- 1 root sys 1928 Aug 14 15:25 ftpaccess
-rw-r--r-- 1 root sys 21 Jul 29 11:37 ftpusers
dr-xr--r-- 2 bin bin 96 Aug 14 15:25 pids