1836462 Members
1934 Online
110101 Solutions
New Discussion

Re: ftp session fails

 
Anton S.L. Lau
New Member

ftp session fails

Hi all,

have any of you faced the following problem?
a telnet session from one host-a to the other host-b went succesfully, but a ftp session fails from the same host-a to the host-b failed for the same user.
The OS of the hosts are HP-UX 11

If someone can shared me the knowledge how this can happen, I'll be very happy.
And the one who can supply me the solution will be my hero :-)

regards

Anton
14 REPLIES 14
Stefan Farrelly
Honored Contributor

Re: ftp session fails

check if the file /etc/ftpd/ftpusers exists - if it does ensure your user is not in it - or else they are not allowed to run ftp.

Check /etc/shells - the user must have a valid shell in their passwd entry as specified in this file or else ftp wont work.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Jeff Schussele
Honored Contributor

Re: ftp session fails

Hi Anton,

Chances are this is a name resolution problem.
Make sure BOTH hosts can resolve the other by name AND by IP and that they can resolve themselves both ways.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Vijaya Kumar_3
Respected Contributor

Re: ftp session fails



can u look into the logs?

can u post what exactly failure happens during ftp session?

Check for /etc/ftpuser
If an user listed in this file, he is NOT allowed to use ftp...

Check the log messages...

-Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Sanjay_6
Honored Contributor

Re: ftp session fails

Hi Anton,

check and see if the user is blocked from doing an ftp to the server. Check the /etc/ftpd/ftpusers. If the login name exists in this file, that means that the user id cannot ftp to the server.

Hope this helps.

Regds
Steven E. Protter
Exalted Contributor

Re: ftp session fails

for better logging

inetd -l

tail -f /var/adm/syslog/syslog.log

Then to the ftp thing and watch for errors in another session.

There are problems with the latest wu-ftpd and several security bulletins that required binary replacement.

I wonder why HP doesn't just create a new depot file.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Schulte zur Sur
Honored Contributor

Re: ftp session fails

Hi Anton,

what do you mean by failed?
Any specific error message?
What about firewall?
telnet port may be open but ftp not.

greetings,

Michael
Anton S.L. Lau
New Member

Re: ftp session fails

Thanks all for your help.
Still wrestling with the problem.
The hard thing is, the problem is not consistent, it happens from time to time.
But again thanks anyhow.
If you guys have more sugestions, please let me know.

rgrds
Michael Schulte zur Sur
Honored Contributor

Re: ftp session fails

Hi,

even if the problem is not solved, could you spare some points from the endless supply of points, HP has, for those, who tried to help you? ;-)

thanks,

Michael
Anton S.L. Lau
New Member

Re: ftp session fails

Sorry,
thought I did.

will do ASAP.
Again thanks for your help
Michael Schulte zur Sur
Honored Contributor

Re: ftp session fails

Hi,

is one week enough to be asap? ;-))))

be silly from time to time,

Michael
Anton S.L. Lau
New Member

Re: ftp session fails

Thanks you all guys for your help

Anton
Mark Grant
Honored Contributor

Re: ftp session fails

How about the old favorite of making sure that the user you are using to "ftp" into host b as has a shell that is specified in /etc/shells
Never preceed any demonstration with anything more predictive than "watch this"
Jim Butler
Valued Contributor

Re: ftp session fails

Hp released an ftp patch that disabled ftp on HP 11 about 2.5 years ago - I forget the patch - but make sure your ftp patches are up to date.

Failing that, the /etc/shells and ftpusers is the way to go -

doesn't ftpusers work in reverse (i.e. only put the users in that file you want to restrict?)

Man The Bilge Pumps!
Suresh Patoria
Super Advisor

Re: ftp session fails

Hi

Check the /var/adm/inetd.sec file

Thanx