1847256 Members
6426 Online
110263 Solutions
New Discussion

Re: FTP issue

 
Nsikan_2
Occasional Advisor

FTP issue

Attempting to ftp from windows XP to HP-UX 11.11 is not possible, but the systems can ping each other.what could be the problem???
I need your help ASAP pls.
Rgds.
14 REPLIES 14
RAC_1
Honored Contributor

Re: FTP issue

Is loggin enabled on hp-ux box?? (inetd -l to do it)
What does /var/adm/syslog/syslog.log says??

Anil
There is no substitute to HARDWORK
Sunil Sharma_1
Honored Contributor

Re: FTP issue

Hi,

what error it is giving ?
check /etc/inetd.conf file on server it should have entry for ftp as shown below

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

and check /var/adm/inetd.sec file. you xp machine's IP address should not be benied there.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Nsikan_2
Occasional Advisor

Re: FTP issue

Hi guys,
i appreciate ur respomnse, but the issue is still there.more ideas pls.
rgds.
Sridhar Bhaskarla
Honored Contributor

Re: FTP issue

Hi,

What is the error you are getting?. May be there is a firewall that is blocking the 'ftp' port from windows to HP-UX. On the HP-UX system do 'ftp localhost' and see if it works. Also look at /var/adm/inetd.sec file on the HP server to see if it is not blocking any IP addresses.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Nsikan_2
Occasional Advisor

Re: FTP issue

the error is:
connected to
connection closed by remote host.

the netconf file and the entry in /etc/inetd.conf are ok.
It can ftp to localhost, though slow!!!

More ideas pls.
Sridhar Bhaskarla
Honored Contributor

Re: FTP issue

Hi,

To debug it further, do the following.

#cp /etc/inetd.conf /etc/inetd.conf.old
#vi /etc/inetd.conf

Make sure your ftp entry looks like this

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -L -l -v

(add -a too if you are using ftpaccess file)
#inetd -c
#inetd -l
#tail -f /var/adm/syslog/syslog.log

Try to ftp from the windows XP system and see what messages you get in syslog.log.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Nido
Trusted Contributor

Re: FTP issue

As it is already suggested:
for checking /etc/inetd.conf and /etc/services.
whether the firewall entries are restricting ftp service.
Check for /etc/ftpusers file. If you have any account name inside this file, then
ftp login for the same accounts will
be rejected.

Regards,
Ganesh
" Let Villagers Be Happy!! "
Nsikan_2
Occasional Advisor

Re: FTP issue

The errors from syslog.log as below:

tail -f /var/adm/syslog/syslog.log
Nov 8 15:59:29 misunix1 ftpd[1686]: FTP session closed
Nov 8 16:01:54 misunix1 inetd[613]: Connection logging disabled
Nov 8 16:03:49 misunix1 inetd[613]: Rereading configuration
Nov 8 16:03:49 misunix1 inetd[613]: protocol = tcp
Nov 8 16:03:49 misunix1 inetd[613]: protocol = udp
Nov 8 16:03:50 misunix1 inetd[613]: Configuration complete
Nov 8 16:03:50 misunix1 inetd[613]: protocol = tcp
Nov 8 16:03:53 misunix1 above message repeats 18 times
Nov 8 16:03:50 misunix1 inetd[613]: protocol = udp
Nov 8 16:03:53 misunix1 above message repeats 7 times

expecting more ideas ASAP pls.
Sridhar Bhaskarla
Honored Contributor

Re: FTP issue

Hi,

There is only one ftpd related message. Try doing ftp from the windows and see what messages appear in your syslog.log and post them.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Nsikan_2
Occasional Advisor

Re: FTP issue

tail -f /var/adm/syslog/syslog.log
Nov 8 16:03:49 misunix1 inetd[613]: Rereading configuration
Nov 8 16:03:49 misunix1 inetd[613]: protocol = tcp
Nov 8 16:03:49 misunix1 inetd[613]: protocol = udp
Nov 8 16:03:50 misunix1 inetd[613]: Configuration complete
Nov 8 16:03:50 misunix1 inetd[613]: protocol = tcp
Nov 8 16:03:53 misunix1 above message repeats 18 times
Nov 8 16:03:50 misunix1 inetd[613]: protocol = udp
Nov 8 16:03:53 misunix1 above message repeats 7 times
Nov 8 16:32:55 misunix1 ftpd[1795]: FTP session closed
Nov 8 16:35:07 misunix1 ftpd[1799]: FTP session closed
Dwyane Everts_1
Honored Contributor

Re: FTP issue

Are you by any chance using XP with Service Pack 2? If so, try turning off the MS Firewall, and then give it a try.

Dwyane
Ron Kinner
Honored Contributor

Re: FTP issue

Windows does not normally run an FTP server.

Verify that the ftp server is running on the Window box by

netstat -an

and look for TCP listening on port 21. If you don't see it then it is not running an FTP server. If you need an FTP server for a Windows box I recommend WAR_FTP

http://support.jgaa.com/index.php?cmd=DownloadVersion&ID=32

It's freeware, stable and quite popular.

Have you tried going the other way? FTP from the Window box to the UNIX? There is a simple FTP client in Windows.

Ron
Patrick Wallek
Honored Contributor

Re: FTP issue

2 more things to check:

Verify that FTP access is not restricted via the /var/adm/inetd.sec file.

See if you have an /etc/shells file. If so, verify that the defualt shell of the user trying to the FTP is in that file.


By the way, to go Windows HP TO HP-UX, you don't need an FTP server on the windows box. You only need that if you are trying to go HP-UX TO Windows.
bhavin asokan
Honored Contributor

Re: FTP issue

hi,

as others told you have to check the following

1.entry of ftp in /etc/inetd.conf & /etc/services

2.if /etc/shells exists the users shell you are trying to ftp should have entry in that file.

3. if you have restricted entry for only some hosts (against ftp allow line --- see man inetd.sec for more details)

and check for the following also.

4. /etc/ftpd/ftpusers files exists or not.if it exists and any users entry is there it will deny login for that users.

5.sometimes the windows xp systems will give errors due to its own problems.i have faced a problem for telnet to hpux11i machine and it was only problem with win xp .after reinstallation of xp it became ok.you can check it by giving this systems ip address to some other system and try to ftp from that system.if you can do ftp from second system you should have to reinstall the first system.

regds,