Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

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 

Symptoms

FTPユーザー ログインが次のエラーで失敗します。
500 OOPS: vsftpd: refusing to run with writable root inside chroot()

Cause

この問題は、OneFSをアップグレードされた vsftpdです。
  • 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 の公式ホームページ  このハイパーリンクをクリックすると、デル・テクノロジーズ以外のWebサイトにアクセスします。
- 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

ここでは、問題とその修正手順を簡単に再現します。

  1. 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
  1. 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>
  1. 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

Affected Products

PowerScale OneFS

Products

PowerScale F200, PowerScale F600, PowerScale F900, PowerScale Hybrid H700, PowerScale P100
Article Properties
Article Number: 000214872
Article Type: Solution
Last Modified: 23 July 2024
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.