Operating System - HP-UX
1758561 Members
1778 Online
108872 Solutions
New Discussion юеВ

ftp login refused (bad shell)

 
SOLVED
Go to solution
D Block 2
Respected Contributor

ftp login refused (bad shell)

Has anyone seen this error in the syslog ?

ftpd[2324]: FTP LOGIN REFUSED (bad shell) FROM

keep in mind, I can ftp as another user, but one user in particular causes this error.

what is the " (bad shell) " error message ?

and the file is missing: /etc/ftpd/ftpusers

Golf is a Good Walk Spoiled, Mark Twain.
4 REPLIES 4
Prashant Zanwar_4
Respected Contributor
Solution

Re: ftp login refused (bad shell)

grep -i /etc/passwd..

what does this give.

Thanks and regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Pete Randall
Outstanding Contributor

Re: ftp login refused (bad shell)

Most likely this users shell is set to something that is not present in the /etc/shells file.


Pete

Pete
Sundar_7
Honored Contributor

Re: ftp login refused (bad shell)

Couple of things to check

1) executable that is defined as the user's login shell should be present in the system

2) Add the user's login shell to /etc/shells file.
Learn What to do ,How to do and more importantly When to do ?
D Block 2
Respected Contributor

Re: ftp login refused (bad shell)

the user acct had:
/usr/bin/sh
but it was missingin the
/etc/shells.

thanks guys! nice catch!
Golf is a Good Walk Spoiled, Mark Twain.