1827437 Members
5056 Online
109965 Solutions
New Discussion

Re: Can't FTP

 
SOLVED
Go to solution
j773303
Super Advisor

Can't FTP

ftpd[6481]: FTP LOGIN REFUSED (bad shell)
Does any has the experience about this error message?Thanks!
Hero
7 REPLIES 7
Michael Steele_2
Honored Contributor

Re: Can't FTP

Check the account shell with 'finger' (* or /etc/passwd *) with what's listed in /etc/shells.

Here are valid shells:

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

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x24905220af9bd5118ff10090279cd0f9,00.html
Support Fatherhood - Stop Family Law
Michael Tully
Honored Contributor

Re: Can't FTP

Check the users account in /etc/passwd. You could have an incorrect entry, or syntax error.
You don't necessarily have to have a /etc/shells file.
Anyone for a Mutiny ?
Steven E. Protter
Exalted Contributor

Re: Can't FTP

Could be a bad manual edit on /etc/passwd

After following prior instructions, try pwck command. It checks the consistency of the 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
T G Manikandan
Honored Contributor

Re: Can't FTP

check your /etc/ftpd/ftpusers file.

The file restricts users for ftp logins.

Revert
j773303
Super Advisor

Re: Can't FTP

The OS is 11i, and hasn't /etc/shells. I have modify the /etc/passwd for root or other user, only /usr/bin/ksh can ftp successfully? the other shell will failed.
Hero
V. V. Ravi Kumar_1
Respected Contributor
Solution

Re: Can't FTP

hi,
if u don't have /etc/shells u can create it and put the entries.
Ex:
/usr/bin/ksh
/usr/bin/sh
/usr/bin/false

Also check /etc/ftpd/ftpusers, which denies permission for the listed users in the file.

Regards


Never Say No
john korterman
Honored Contributor

Re: Can't FTP

Hi,
when you introduce the /etc/shells you should notice that you thereby allow only the shells in that file. You should at least include these:

/usr/bin/sh
/usr/bin/posix/sh
/sbin/sh
/usr/bin/ksh
/usr/bin/csh
/usr/bin/false
/usr/bin/exitshell

else you might get problems with root's shell and your c-shell users, if any.

regards,
John K.
it would be nice if you always got a second chance