1844612 Members
2234 Online
110233 Solutions
New Discussion

Re: FTP

 
FTP issue
Advisor

FTP

Not being a UNI ADMIN, but being put into the position, I have created a new server but cannot get FTP to work correctly. I can FTP out from the server, but not back into the server from another one. I keep getting a 530 error message. I have read about the /etc/shells file and did create one, but with not luck, any help will be greatly appreciated. Thank you
31 REPLIES 31
Sandman!
Honored Contributor

Re: FTP

FTP issue
Advisor

Re: FTP

Thank you for the doc, I have tried all of it, but still get this error in the syslog.

Oct 9 04:38:25 server ftpd[6677]: User username: Login incorrect
Oct 9 04:39:13 server inetd[6688]: registrar/tcp: Connection from server (xxx
.xxx.xxx.xx) at Mon Oct 9 04:39:13 2006
Oct 9 04:41:13 server inetd[6693]: registrar/tcp: Connection from server (xxx
.xxx.xxx.xx) at Mon Oct 9 04:41:13 2006
Oct 9 04:43:13 server inetd[6723]: registrar/tcp: Connection from server (xxx
.xxx.xxx.xx) at Mon Oct 9 04:43:13 2006
Oct 9 04:38:25 server ftpd[6677]: User user: Login incorrect
Oct 9 04:43:18 server ftpd[6677]: pam_acct_mgmt:General Commercial Security er
ror. 0
Oct 9 04:43:18 server ftpd[6677]: User username: Login incorrect
Oct 9 04:43:18 server ftpd[6677]: REPEATED LOGIN FAILURES FROM XXX.XXX.XXX.XX
Oct 9 04:43:19 server ftpd[6677]: FTP session closed
Steven Schweda
Honored Contributor

Re: FTP

How are you trying to talk to the FTP server?
(Web browser? FTP client program, xxxx?
Wget? ???)

Are you trying to log in as a particular real
user, or as "anonymous"?

What means "created a new server"?

What is your OS and version? ("uname -a"?)
Yang Qin_1
Honored Contributor

Re: FTP

Can you use the same user name / password "telnet" to that server? Can you create a .netrc file on your "from" server (not the server you have problem with FTP) in $HOME (your home directory) with the content:
machine problem_server login your_username password your_password

and then "chmod 400 .netrc". Then try ftp again. With .netrc, FTP session will not ask you for user name / password
FTP issue
Advisor

Re: FTP

I have several 9000, this one that I am having issues FTPing to is my new one that I just added all the software too. I use reflections to FTP from one server to the next. I can do a get from this new server and get data from one of the other 9000's, I cannot do a put from then to my new 9000, I get the login error message. My user names are correct on all servers and I have tried several different user names.

uname -a
HP-UX solved2 B.11.11 U 9000/800
Yang Qin_1
Honored Contributor

Re: FTP

Can you describe how you "put" file from your Reflection FTP session to that new server? I thought you will be asked for user name password before you can get or put files
FTP issue
Advisor

Re: FTP

I just log into reflections, type in FTP do a open to the IP address and the login in, this is what I cannot do, it will not let me login from my old 9000 to my new 9000, I can login from my new 9000 to my old one and do a get from there, but not the other way.
Dave La Mar
Honored Contributor

Re: FTP

Well, let's start with the 530 message. This commonly means you have not been authenticated to the server and a login prompt is requested.
It would help if you posted the output for attempting a standard ftp to the server.

Regards,

-dl
"I'm not dumb. I just have a command of thoroughly useless information."
Steven Schweda
Honored Contributor

Re: FTP

You might try using the simple FTP client
program ("ftp"). It should look something
like this:

shell_prompt> ftp td191.testdrive.hp.com
Connected to td191.testdrive.hp.com.
220 td191.testdrive.hp.com FTP server (Revision 1.1 Version wuftpd-2.6.1(PHNE_34
306) Mon Mar 13 11:15:29 GMT 2006) ready.
Name (td191.testdrive.hp.com:antinode): antinode [Type your user name here.]
331 Password required for antinode.
Password: [Type your password here.]
230 User antinode logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
FTP issue
Advisor

Re: FTP

This is the program that I cannot get to log in, using the standard FTP program. This is the error that I keep getting. Sorry, I am new to UNIX.

david:LIVE $ ftp 19x.16x.12x.4x
Connected to 19x.16x.12x.4x.
220 solved2 FTP server (Version 1.1.214.4(PHNE_30990) Mon Nov 15 12:47:12 GMT 20
04) ready.
Name (19x.16x.12x.4x:david): david
331 Password required for david.
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Steven Schweda
Honored Contributor

Re: FTP

> Name (19x.16x.12x.4x:david): david
> 331 Password required for david.
> Password:
> 530 Login incorrect.
> Login failed.

Yup, that's a log-in failure. As someone
else already asked:

> Can you use the same user name / password
> "telnet" to that server?
FTP issue
Advisor

Re: FTP

Yes i can telnet to the server.
Yang Qin_1
Honored Contributor

Re: FTP

can you logon to your new server and run:

grep ^ftp /etc/inetd.conf /etc/pam.conf

then post the output here?
Sandman!
Honored Contributor

Re: FTP

Is this a trusted system?
FTP issue
Advisor

Re: FTP

grep ^ftp /etc/inetd.conf /etc/pam.conf
/etc/inetd.conf:ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
/etc/pam.conf:ftp auth required /usr/lib/security/libpam_unix.1
/etc/pam.conf:ftp account required /usr/lib/security/libpam_unix.1
Yang Qin_1
Honored Contributor

Re: FTP

OK, last try. can you logon to your new server and change your password with a very simple one, it's better not very long, not with sepcial char, maybe with some letters + numbers and then from your new server, is just test it on the same server run ftp to itself. Let's us know the result.
FTP issue
Advisor

Re: FTP

I changed the password and login in to itself , tried with 2 different users and here are the results.

david:LIVE $ ftp
ftp> open 19x.16x.12x.4x
Connected to 19x.16x.12x.4x.
220 solved2 FTP server (Version 1.1.214.4(PHNE_30990) Mon Nov 15 12:47:12 GMT 20
04) ready.
Name (19x.16x.12x.4x:david): david
331 Password required for david.
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> user root
331 Password required for root.
Password:
530 Login incorrect.
Login failed.
ftp>
Yang Qin_1
Honored Contributor

Re: FTP

I still don't want to give up :) can you
ls -l /etc/ftpd
FTP issue
Advisor

Re: FTP


david:LIVE $ ls -l /etc/ftpd
/etc/ftpd/ftp-exec not found
/etc/ftpd/pids not found
total 0
Yang Qin_1
Honored Contributor

Re: FTP

couldn't see any problem there although you have no execute permission to /etc/ftpd (that's correct you do not need to change it).

this is realy last try for today, got to sleep. Can you restart inetd by:

inetd -k;inetd -c

and then ftp again?
FTP issue
Advisor

Re: FTP

# ps -ef | grep inetd
root 17050 1 0 15:44:27 ? 0:00 inetd
# inetd -k;inetd -c
inetd: There is no inetd running
#

Sorry for the headache on this, I thank you for all of your help
Yang Qin_1
Honored Contributor

Re: FTP

just run inetd without option
Steven Schweda
Honored Contributor

Re: FTP

> just run inetd without option

You may need to kill the old one first.

"kill [-9] 17050"?

Clearly, it's a little confused.
Yang Qin_1
Honored Contributor

Re: FTP

# inetd -k;inetd -c
inetd: There is no inetd running
#
============================

I think inetd -k worked but inetd -c doesn't work because "inetd: There is no inetd running" and that's why I suggested to run inetd without option.