cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Issue...!!

Amitav
Frequent Advisor

FTP Issue...!!

Hi Folks,

I have an FTP issue on one of my hp-ux servers to another using "oracle" user id. The problem persists only on one particular server...below is the o/p pasted, need your help to resolve it...!!

oracle@himhps03[bin] pocdb> ftp himhdv02
Connected to himhdv02.thehartford.com.
220 himhdv02.thehartford.com FTP server (Revision 1.1 Version wuftpd-2.6.1(PHNE_38578) Fri Jun 26 09:21:37 GMT 2009) ready.
Name (himhdv02:km07656): oracle
331 Password required for oracle.
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>


oracle@himhps03[bin] pocdb> ftp himhps02
Connected to himhps02.thehartford.com.
220 himhps02 FTP server (Version 1.1.214.4(PHNE_38458) Tue Jul 29 07:36:52 GMT 2008) ready.
Name (himhps02:km07656): oracle
331 Password required for oracle.
Password:
230 User oracle logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

7 REPLIES
Mel Burslan
Honored Contributor

Re: FTP Issue...!!

I will point the obvious to you

Your first (problem) server's ftp greeting
*****
220 himhdv02.thehartford.com FTP server (Revision 1.1 Version wuftpd-2.6.1(PHNE_38578) Fri Jun 26 09:21:37 GMT 2009) ready
*****



Your second (working) server's ftp greeting:
*****
220 himhps02 FTP server (Version 1.1.214.4(PHNE_38458) Tue Jul 29 07:36:52
*****

First server is running Washington University origined, somewhat enhanced ftp server whereas the second server is running a plain old ftpd provided with HPUX itself.


wuftpd, has some *features* which you explicitly need to configure. I remember this from many many years ago but I forgot the details. Most probably oracle user is not in the list of users allowed to login via wuftpd server. You need to put the user into the ftpaccess file somewhere in order to make it work. Or just change the ftp server your problem server uses to the plain ftpd, unless there is a reason why wuftpd has been put in place.

run this command on both servers and note the differences:

grep ftp /etc/inetd.conf| grep -v tftp

________________________________
UNIX because I majored in cryptology...
Steven Schweda
Honored Contributor

Re: FTP Issue...!!

> [...] my hp-ux servers [...]

Not a very detailed description of anything.

uname -a


> 331 Password required for oracle.
> Password:
> 530 Login incorrect.
> Login failed.

Have you tried any of the obvious things?

Are you sending the right password for user
"oracle" on that system? Does that
user+password combination work in a non-FTP
context on that system? Does FTP on that
system work as expected for other user names?
Doug O'Leary
Honored Contributor

Re: FTP Issue...!!

Hey;

Assuming the password is correct, make sure oracle's shell is listed in /etc/shells. That's a routine source for not being able to log in via ftp...

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Amitav
Frequent Advisor

Re: FTP Issue...!!

Doug,

Can you tell me what's the default oracle shell that needs to be added on /etc/shell
James R. Ferguson
Acclaimed Contributor

Re: FTP Issue...!!

Hi:

> Can you tell me what's the default oracle shell that needs to be added on /etc/shell

That would be the oracle account's default shell as defined in '/etc/passwd'.

If the file '/etc/shells' [plural] doesn't exist or is not readable, the list of standard shells is assumed to be:

/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh

Hence, if you do have an '/etc/shells' file, make sure that it (at least) includes the absolute path to the 'oracle' default shell as Doug suggested you verify.

Regards!

...JRF...
Doug O'Leary
Honored Contributor

Re: FTP Issue...!!

Hey;

awk -F: '$1 ~ /^oracle/ {print $NF}' /etc/passwd

will tell you the shell that oracle's using and what needs to be added to /etc/shells if it's not there already.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
James R. Ferguson
Acclaimed Contributor

Re: FTP Issue...!!

Hi (again):

To be clear, if you don't already have an '/etc/shells' file and if (for example) you were using the 'tcsh' shell with your Oracle, then define not only the standard shells I listed, but also include the 'tcsh' shell like this:

/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/local/bin/tcsh
/usr/bin/keysh

You don't want an '/etc/shells' file that contains only your Oracle shell since then other, standard shells would be denied FTP access!

Use absolute paths.

Regards!

...JRF...