1834809 Members
2787 Online
110070 Solutions
New Discussion

Re: FTP login Refused

 
SOLVED
Go to solution
roobala
Frequent Advisor

FTP login Refused

Dear All,

We have L1000 Server with HP-UX 11.00.
We are not able to establish connection with ftp even as root. when "ftp servername" is typed, it asks for username (root) and after that asks for password. When we type the password, it says access denied. (we tried it for different user also)

In syslog file there was an entry saying
"ftp login refused (bad shell)"

Please provide us what will be wrong.

Thanks and regards

V.Selvaraj
5 REPLIES 5
Jesus M. Charro Dorado
Frequent Advisor

Re: FTP login Refused

There's a problem with /etc/passwd. Check that the shell for root in /etc/passwd is correct. I had that problem and it was a type mismatch.

Regards,

Jesus
Victor BERRIDGE
Honored Contributor

Re: FTP login Refused

It looks like you have an /etc/ftpd/ftpusers with root (and all other users?) inside, if I try on a host to create an /etc/ftpd/ftpusers with root inside, I get in /var/adm/syslog/syslog.log:
ftpd[9786]: FTP LOGIN REFUSED (bad shell)...

John Palmer
Honored Contributor
Solution

Re: FTP login Refused

Hi,

Also check the contents of file /etc/shells and make sure that if the file exists it contains the shell name specified in the password file.

See man ftpd and man getusershell for more information.

Regards,
John
CHRIS_ANORUO
Honored Contributor

Re: FTP login Refused

Read online manual for ftpd. Check the line "In order to permit .....
ftp:*:500:10:anonymous ftp:/home/ftp:/usr/bin/false.

Also check /var/adm/inetd.sec file to see if there is access deny for ftp users ip addresses.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
James R. Ferguson
Acclaimed Contributor

Re: FTP login Refused

Hi:

/etc/ftpusers in 10.x or /etc/ftpd/ftpusers in 11.x control ftp remote logins to local user accounts. Lines in the file should represent the account names for which you do NOT want to grant access. It would appear that you have included (erroneously) a line with "root". If you do not want to restrict any accounts, you may simply remove the file entirely. See "man (4) ftpusers" for more information.

...JRF...

...JRF...