PowerScale OneFS:アップグレード後に「500 OOPS: Vsftpd: chroot内の書き込み可能なルートで実行することを拒否します」
Summary: アップグレードまたはパッチ適用後に、FTPユーザーがPowerScale FTPサーバーに接続すると、「500 OOPS: Vsftpd: chroot()内で書き込み可能なrootで実行することを拒否します。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
FTPユーザー ログインが次のエラーで失敗します。
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Cause
この問題は、OneFSをアップグレードされた vsftpdが使用するJava Runtime Environmentへのパスを定義します。
- 8.2.2_GA-RUP_2023-06以降
- 9.1.0.29以降
- 9.2.1.23以降
- 9.4.0.14以降
- 9.5.0.4以降
- 9.6.0.0以降
たとえば、 vsftpd pkg がアップデート元 vsftpd-ssl-2.3.4vsftpd-ssl-3.0.5.
詳細については、 vsftpd https://security.appspot.com/vsftpd/Changelog.txt の公式ホームページ
- Add stronger checks for the configuration error of running with a writeable root directory inside a chroot(). This may bite people who carelessly turned on chroot_local_user but such is life. - Add new config setting "allow_writeable_chroot" to help people in a bit of a spot with the v2.3.5 defensive change. Only applies to non-anonymous.
問題は、FTPユーザーのルート ディレクトリーが書き込み可能であることです。「 chroot 制限が使用されますが、最近の更新では許可されていません。「 chroot ユーザーがロックされているディレクトリー は書き込み可能であってはなりません。
Resolution
注:この変更はOneFSのアップグレード後も維持されません。/etc/mcp/templates/vsftpd.confがデフォルトに戻されるためです。このKB記事の問題が発生しないように、アップグレード後に解決策が再度適用されていることを確認します。
この問題に対処するには、次の 2 つのオプションがあります。
- オプション1: ユーザーのルート ディレクトリーの書き込み権限を削除します。
次のコマンドを実行して、ディレクトリーをユーザーの
chroot ディレクトリ:
#chmod a-w /home/user
- オプション2: 以下の構成設定を
vsftpdグローバル構成ファイルまたは個別ユーザー構成ファイル:
allow_writeable_chroot=YES
OneFSクラスターでは、
vsftpd 設定を /ifs/data/Isilon_Support/となります。例:
# cp -av /etc/mcp/templates/vsftpd.conf /ifs/data/Isilon_Support/vsftpd.conf.bak次に、VIエディタを使用して、次の行を
/etc/mcp/templates/vsftpd.conf "
allow_writeable_chroot=YES"
VIエディタを使用する代わりに、echoコマンドを使用して同じファイルに行を追加することもできます。
# echo "allow_writeable_chroot=YES" >> /etc/mcp/templates/vsftpd.conf
数秒待ってから、ファイルがすべてのノードで更新され、ファイルのmd5チェックサムが整合していることを確認します。
# isi_for_array -s md5 /etc/mcp/templates/vsftpd.conf
ここでは、問題とその修正手順を簡単に再現します。
-
OneFS 9.4.0.14を実行しているPowerScaleクラスターにログインします。以下は、FTPユーザーのホーム ディレクトリーです。
test2-fxq5rm3-1# ls -ld /ifs/home/warmsvcisiftp
drwx------ 2 warmsvcisiftp Isilon Users 264 Jun 13 02:50 /ifs/home/warmsvcisiftp
-
FTPユーザー ログインが失敗し、次のエラー メッセージが表示されます。
test2-fxq5rm3-1# ftp localhost
Trying 127.0.0.1:21 ...
Connected to localhost.
220-PowerScale OneFS 9.4.0.14
220
Name (localhost:root): warmsvcisiftp
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
ftp: Login failed
ftp>
-
There are two options to address this issue depending on your workflow and concerns:
- オプション1: ユーザーのルート ディレクトリーの書き込み権限を削除します。
test2-fxq5rm3-1# chmod a-w /ifs/home/warmsvcisiftp
test2-fxq5rm3-1# ls -ld /ifs/home/warmsvcisiftp
dr-x------ 2 warmsvcisiftp Isilon Users 264 Jun 13 02:50 /ifs/home/warmsvcisiftp
test2-fxq5rm3-1# ftp localhost
Trying 127.0.0.1:21 ...
Connected to localhost.
220-PowerScale OneFS 9.4.0.14
220
Name (localhost:root): warmsvcisiftp
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.
- オプション2: セキュリティ チェックを回避します。
test2-fxq5rm3-1# chmod u+w /ifs/home/warmsvcisiftp
test2-fxq5rm3-1# ls -ld /ifs/home/warmsvcisiftp
drwx------ 2 warmsvcisiftp Isilon Users 264 Jun 13 02:50 /ifs/home/warmsvcisiftp
test2-fxq5rm3-1# echo "allow_writeable_chroot=YES" >> /etc/mcp/templates/vsftpd.conf
test2-fxq5rm3-1# isi_for_array -s md5 /etc/mcp/templates/vsftpd.conf
test2-fxq5rm3-1: MD5 (/etc/mcp/templates/vsftpd.conf) = 4920beaff65c3bfa09bd18582c2fbcf8
test2-fxq5rm3-2: MD5 (/etc/mcp/templates/vsftpd.conf) = 4920beaff65c3bfa09bd18582c2fbcf8
test2-fxq5rm3-3: MD5 (/etc/mcp/templates/vsftpd.conf) = 4920beaff65c3bfa09bd18582c2fbcf8
test2-fxq5rm3-1# ftp localhost
Trying 127.0.0.1:21 ...
Connected to localhost.
220-PowerScale OneFS 9.4.0.14
220
Name (localhost:root): warmsvcisiftp
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye. Additional Information
- Dellの記事「Isilon: OneFS 8.X以降:FTPユーザーを特定のディレクトリーにロックする(chroot(ルート変更)jail)方法
- ArchLinux ドキュメント、 非常に安全な FTP デーモン
Affected Products
PowerScale OneFSProducts
PowerScale F200, PowerScale F600, PowerScale F900, PowerScale Hybrid H700, PowerScale P100Article Properties
Article Number: 000214872
Article Type: Solution
Last Modified: 28 May 2025
Version: 6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.