桜根です。
2006/11/28 の 16:03:04 頃 Kawakami さんが書いた
「[linux-users:107057] Re: telnetできるのにftpできない」
<<456BDF2A.90006@xxxxxxxxxxxx>>
についての返信です。
>> FedraCore & vsftpd は良く知りませんが、
>> ・/etc/shells
>> ・/etc/vsftpd.ftpusers
>> 等のファイルを確認してみてはいかがでしょう。
>>
>> 該当ユーザがshellsに書かれていないログインシェルになっているとか
>> 該当ユーザがvsftpd.ftpusersに書かれているとか。
>>
>ログインシェルが違うとtelnet接続もできないと思うので該当しない
>のではないでしょうか?
「思う」のでは無く、ちゃんと調べてみましょう。
FedraCore でもおそらく /etc/shells ファイルは telnet には影響
しないと思います。
どのアプリケーションが shells ファイルを参照するかは、その OS に
よりますが、少なくとも Solaris の ftpd はこのファイルを参照して
記載されていないログインシェルを指定しているユーザからの ftp
ログインは拒絶します。
その際にも、telnet ログインは問題ありません。
ishi様も別メールの4項で同じ事を書かれていますので、少なくとも
2対1で「関係ありそう」と言う意見の方が多いみたいですね。(^_^;
ちなみに CentOS-4 で確認したところ以下の通りでした。
[条件]
・sakuraneユーザのログインシェルは /bin/bash
・/etc/shells から /bin/bash を削除
------------------------------------------------------
[root@centos4-1 etc]# ftp localhost
Connected to localhost.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): sakurane
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
------------------------------------------------------
この状態で /etc/shells の /bin/bash を復活させると
-------------------------------------------------------
[root@centos4-1 etc]# ftp localhost
Connected to localhost.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (localhost:root): sakurane
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
------------------------------------------------------
となり、ちゃんと成功します。
ちなみに telnet は無効にしたあるので試せませんが、少なくとも
ssh ログインはどちらでも問題ありません。
>fedoracoreの場合 /etc/vsftpd/ftpusers /etc/vsftpd/usr_listが
>相当するファイルだと思うので、確認しましたが、defaultのものしか
>記載されていません。また、記載されている場合は、パスワードを
>訊かれる前に拒絶されるように思います。
こちらも「思う」のでは無く、試してみてはいかがでしょう。
もし「該当ユーザ」を記載して、上記の通りになれば、ftpusers は
関係無いという事が証明されるので、障害の切り分けになりますね。
--
桜根 克至 (さくらね かつし)
e-mail : sakurane@xxxxxxxxxxxxxx
Follow-Ups: References:
- [linux-users:107054] telnetできるのにftpできないKawakami
- [linux-users:107055] Re: telnetできるのにftpできない桜根 克至
- [linux-users:107057] Re: telnetできるのにftpできないKawakami
- Prev by Subject: [linux-users:107057] Re: telnetできるのにftpできない
- Next by Subject: [linux-users:107059] Re: [linux-users:107054] telnetできるのにftpできない
- Previous by thread: [linux-users:107057] Re: telnetできるのにftpできない
- Next by thread: [linux-users:107061] Re: telnetできるのにftpできない
- Indexes:[Main][Thread]