1752777 Members
6172 Online
108789 Solutions
New Discussion юеВ

ftp error

 
khilari
Regular Advisor

ftp error

Hi guys, i am getting ftp error on a server.. i can telnet into it, i can ftp out of it but when i am ftping into it i get the following error... I used other logins as well but they dont work.. In the ftpusers these users are not there...


C:\Documents and Settings\kim>ftp 34.76.222.10
Connected to 34.76.222.10.
220 kbrsp02 FTP server (Version 1.1.214.4(PHNE_36129) Tue Apr 22 06:43:36 GMT 20
08) ready.
User (34.76.222.10:(none)): kim
530 User kim access denied...
Login failed.
6 REPLIES 6
Tingli
Esteemed Contributor

Re: ftp error

Two possibilities:

1. User name kim is in /etc/ftpusers.
2. The shell of user kim is not in the list of /etc/shell.
T G Manikandan
Honored Contributor

Re: ftp error

check /etc/shell for the user's shell.
khilari
Regular Advisor

Re: ftp error

root@kp02 # finger kim
Login name: kim In real life: kim mathew Directory: /home/kim Shell: /sbin/sh
Last login Sat Jul 19, 2008 on pts/0
No unread mail
No Plan.
root@kp02 # echo $SHELL
/bin/ksh
root@kp02 # cat /etc/shells
/usr/bin/false
/usr/bin/ksh
/usr/bin/sh


so u can see the kim's shell is there and also i checked if kim is in ftpusers and kim is not in ftpusers..
Patrick Wallek
Honored Contributor

Re: ftp error

root@kp02 # echo $SHELL
/bin/ksh
root@kp02 # cat /etc/shells
/usr/bin/false
/usr/bin/ksh
/usr/bin/sh


Actually, it isn't. Add /bin/ksh to /etc/shells and try again.

I know /bin is a link to /usr/bin, but I believe FTP looks at the shell as it is defined in /etc/passwd. And since /bin/ksh is what is there, that is what needs to be in /etc/shells.
Dennis Handly
Acclaimed Contributor

Re: ftp error

>Patrick: # echo $SHELL -> /bin/ksh
>Actually, it isn't. Add /bin/ksh to /etc/shells and try again.

You can't just look at $SHELL, only finger or /etc/passwd. Actually besides possibly adding /bin/ksh for others, kim needs /sbin/sh.

>but I believe FTP looks at the shell as it is defined in /etc/passwd.

Right and finger(1) showed /sbin/sh.
Patrick Wallek
Honored Contributor

Re: ftp error

Dennis -- Good point. I missed the fact that /sbin/sh was the shell shown by the finger command. So, that would definitely need to be added to /etc/shells as well since it is definitely different than /usr/bin/sh.