1823251 Members
3319 Online
109648 Solutions
New Discussion юеВ

ftp errors

 
SOLVED
Go to solution
Lakshmikanth Baddam
Frequent Advisor

ftp errors

i am unable to use any commands in ftp
please find the below error
it gives me some
"530 Please login with USER and PASS"

ftp> pwd
530 Please login with USER and PASS.
ftp> pwd
530 Please login with USER and PASS.
ftp> ls
530 Please login with USER and PASS.
530 Please login with USER and PASS.
ftp> lcd
Local directory now /
ftp> cd /tmp/hppatch
530 Please login with USER and PASS.
ftp> lcd
Local directory now /
ftp> lcd /home/lkanth
Local directory now /home/lkanth
ftp> pwd
530 Please login with USER and PASS.
ftp> cd /psoft/fin
530 Please login with USER and PASS.
ftp> ls -l
530 Please login with USER and PASS.
ftp> get PHSS_33350
530 Please login with USER and PASS.
ftp> cd /
530 Please login with USER and PASS.
13 REPLIES 13
A. Clay Stephenson
Acclaimed Contributor

Re: ftp errors

It means that you need to login with a username and password.

the specific FTP command is "user" which will prompt you for the user name and then prompt you for the password. After those are sucessfully answered then you can proceed with your commands like cd, get, put, ... .
If it ain't broke, I can fix that.
Kofi ARTHIABAH
Honored Contributor
Solution

Re: ftp errors

Hello Lakshmikanth

After you start the ftp client, you have to logon to a server. to do that you can use the open

ftp> open

you will be prompted for a username and a password.

you could also just type in USER at the ftp prompt

ftp> user
(username)
Password required for

at this point, you are authenticated and you can get put and all the fun stuff.

Enjoy.

Kofi
nothing wrong with me that a few lines of code cannot fix!
Lakshmikanth Baddam
Frequent Advisor

Re: ftp errors

Kofi,

your trick worked thnx a lot.
Lakshmikanth Baddam
Frequent Advisor

Re: ftp errors

Hi Kofi,

again am getting this error i have ried the steps you gave me..now it is not working

#ftp 3.174.241.24
Connected to 3.174.241.24.
220 stm3ps FTP server (Revision 1.1 Version wuftpd-2.6.1(PHNE_32286
17:37:21 GMT 2005) ready.
Name (3.174.241.24:root): lkanth
331 Password required for lkanth.
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
530 Please login with USER and PASS.
ftp> open stm3ps
Already connected to 3.174.241.24, use close first.
ftp> pwd
530 Please login with USER and PASS.
ftp> user
(username) lkanth
331 Password required for lkanth.
Password:
530 Login incorrect.
Login failed.
ftp> pwd
530 Please login with USER and PASS.
ftp>
IT_2007
Honored Contributor

Re: ftp errors

since you don't have login on the remote server. use following info to login

username: anonymous
password: your e-mail here like lkanth@gmail.com

Dave Hutton
Honored Contributor

Re: ftp errors

I'm guessing your password has been locked out due to too many incorrect login attempts?

I would check that account and make sure its not locked.
Lakshmikanth Baddam
Frequent Advisor

Re: ftp errors

I have tried with anonymous user still it gives same error
530 User anonymous unknown.

My id is not locked as i have logged in again using my id on both the servers once again to confirm it...


Dave Hutton
Honored Contributor

Re: ftp errors

Anything show up in your syslog.log on the server your trying to go to?
IT_2007
Honored Contributor

Re: ftp errors

check if your id exist in ftpusers.deny file. If so, then remove it.
Lakshmikanth Baddam
Frequent Advisor

Re: ftp errors

this is the messge i can see in syslog.log

but i HAVE shell in cat /etc/shells as well and i DON'T have anything such as ftpuser deny file...

Sep 5 10:21:37 stm3ps ftpd[14755]: Data port : 20
Sep 5 10:21:37 stm3ps ftpd[14755]: FTP server (Revision 1.1 Version wuftpd-2.6.
1(PHNE_32286) Fri Apr 15 17:37:21 GMT 2005) ready.
Sep 5 10:21:57 stm3ps ftpd[14755]: FTP LOGIN FROM 3.174.240.215 [3.174.240.215]
, root
Sep 5 10:22:45 stm3ps ftpd[14755]: FTP session closed
Sep 5 10:54:57 stm3ps su: + ttyp1 root-root
Sep 5 11:36:44 stm3ps su: + ttyp2 root-root
Sep 5 11:36:49 stm3ps su: + ttyp2 root-beacon
Sep 5 12:14:43 stm3ps ftpd[19120]: Data port : 20
Sep 5 12:14:43 stm3ps ftpd[19120]: FTP server (Revision 1.1 Version wuftpd-2.6.
1(PHNE_32286) Fri Apr 15 17:37:21 GMT 2005) ready.
Sep 5 12:14:45 stm3ps ftpd[19120]: FTP LOGIN REFUSED (shell not in /etc/shells)
FROM 3.174.240.215 [3.174.240.215], lkanth
Sep 5 12:20:44 stm3ps ftpd[19120]: FTP session closed
Sep 5 12:20:55 stm3ps ftpd[19238]: Data port : 20
Sep 5 12:20:55 stm3ps ftpd[19238]: FTP server (Revision 1.1 Version wuftpd-2.6.
1(PHNE_32286) Fri Apr 15 17:37:21 GMT 2005) ready.
Sep 5 12:15:21 stm3ps ftpd[19120]: FTP LOGIN REFUSED (shell not in /etc/shells)
FROM 3.174.240.215 [3.174.240.215], lkanth
Sep 5 12:20:57 stm3ps ftpd[19238]: FTP LOGIN REFUSED (shell not in /etc/shells)
FROM 3.174.240.215 [3.174.240.215], lkanth
Sep 5 12:30:16 stm3ps ftpd[19238]: FTP session closed
Sep 5 12:22:15 stm3ps ftpd[19238]: FTP LOGIN REFUSED (shell not in /etc/shells)
FROM 3.174.240.215 [3.174.240.215], lkanth
Sep 5 12:31:02 stm3ps above message repeats 2 times
#
Lakshmikanth Baddam
Frequent Advisor

Re: ftp errors

this is the messge i can see in syslog.log

but i HAVE shell in cat /etc/shells as well and i DON'T have anything such as ftpuser deny file...

do i need to start something after adding shell in /etc/shells and how to start ftpd.

--------------------------
Sep 5 10:21:37 stm3ps ftpd[14755]: Data port : 20
Sep 5 10:21:37 stm3ps ftpd[14755]: FTP server (Revision 1.1 Version wuftpd-2.6.
1(PHNE_32286) Fri Apr 15 17:37:21 GMT 2005) ready.
Sep 5 10:21:57 stm3ps ftpd[14755]: FTP LOGIN FROM 3.174.240.215 [3.174.240.215]
, root
Sep 5 10:22:45 stm3ps ftpd[14755]: FTP session closed
Sep 5 10:54:57 stm3ps su: + ttyp1 root-root
Sep 5 11:36:44 stm3ps su: + ttyp2 root-root
Sep 5 11:36:49 stm3ps su: + ttyp2 root-beacon
Sep 5 12:14:43 stm3ps ftpd[19120]: Data port : 20
Sep 5 12:14:43 stm3ps ftpd[19120]: FTP server (Revision 1.1 Version wuftpd-2.6.
1(PHNE_32286) Fri Apr 15 17:37:21 GMT 2005) ready.
Sep 5 12:14:45 stm3ps ftpd[19120]: FTP LOGIN REFUSED (shell not in /etc/shells)
FROM 3.174.240.215 [3.174.240.215], lkanth
Sep 5 12:20:44 stm3ps ftpd[19120]: FTP session closed
Sep 5 12:20:55 stm3ps ftpd[19238]: Data port : 20
Sep 5 12:20:55 stm3ps ftpd[19238]: FTP server (Revision 1.1 Version wuftpd-2.6.
1(PHNE_32286) Fri Apr 15 17:37:21 GMT 2005) ready.
Sep 5 12:15:21 stm3ps ftpd[19120]: FTP LOGIN REFUSED (shell not in /etc/shells)
FROM 3.174.240.215 [3.174.240.215], lkanth
Sep 5 12:20:57 stm3ps ftpd[19238]: FTP LOGIN REFUSED (shell not in /etc/shells)
FROM 3.174.240.215 [3.174.240.215], lkanth
Sep 5 12:30:16 stm3ps ftpd[19238]: FTP session closed
Sep 5 12:22:15 stm3ps ftpd[19238]: FTP LOGIN REFUSED (shell not in /etc/shells)
FROM 3.174.240.215 [3.174.240.215], lkanth
Sep 5 12:31:02 stm3ps above message repeats 2 times
#
IT_2007
Honored Contributor

Re: ftp errors

You said:

this is the messge i can see in syslog.log

but i HAVE shell in cat /etc/shells as well and i DON'T have anything such as ftpuser deny file...

Sep 5 10:21:37 stm3ps ftpd[14755]: Data port : 20
Sep 5 10:21:37 stm3ps ftpd[14755]: FTP server (Revision 1.1 Version wuftpd-2.6.
1(PHNE_32286) Fri Apr 15 17:37:21 GMT 2005) ready.
Sep 5 10:21:57 stm3ps ftpd[14755]: FTP LOGIN FROM 3.174.240.215 [3.174.240.215]
, root
Sep 5 10:22:45 stm3ps ftpd[14755]: FTP session closed
Sep 5 10:54:57 stm3ps su: + ttyp1 root-root
Sep 5 11:36:44 stm3ps su: + ttyp2 root-root
Sep 5 11:36:49 stm3ps su: + ttyp2 root-beacon
Sep 5 12:14:43 stm3ps ftpd[19120]: Data port : 20
Sep 5 12:14:43 stm3ps ftpd[19120]: FTP server (Revision 1.1 Version wuftpd-2.6.
1(PHNE_32286) Fri Apr 15 17:37:21 GMT 2005) ready.
Sep 5 12:14:45 stm3ps ftpd[19120]: FTP LOGIN REFUSED (shell not in /etc/shells)
FROM 3.174.240.215 [3.174.240.215], lkanth
Sep 5 12:20:44 stm3ps ftpd[19120]: FTP session closed
Sep 5 12:20:55 stm3ps ftpd[19238]: Data port : 20
Sep 5 12:20:55 stm3ps ftpd[19238]: FTP server (Revision 1.1 Version wuftpd-2.6.
1(PHNE_32286) Fri Apr 15 17:37:21 GMT 2005) ready.
Sep 5 12:15:21 stm3ps ftpd[19120]: FTP LOGIN REFUSED (shell not in /etc/shells)
FROM 3.174.240.215 [3.174.240.215], lkanth
Sep 5 12:20:57 stm3ps ftpd[19238]: FTP
======================================

syslog clearly says that you don't have shell not listed in /etc/shells on remote machine. What is output of /etc/shells from remote machine?
What is your shell and you can see this from /etc/passwd and look for your id.
Dave Hutton
Honored Contributor

Re: ftp errors

The word shell isn't what its looking for, like IT is suggesting. The specific shell of that user. Look at man shells:
shells(4) shells(4)

NAME
shells - list of allowed login shells

SYNOPSIS
/etc/shells

DESCRIPTION
/etc/shells is an ASCII file containing a list of legal shells on the
system. Each shell is listed in the file by its absolute path name.

Lines or portions of lines beginning with # are assumed to be comments
and are ignored. Blank lines are also ignored.

AUTHOR
shells was developed by HP and the University of California, Berkeley.

FILES
/etc/shells