FreeNAS および SFTP ユーザーは選択したディレクトリに制限されます

FreeNAS および SFTP ユーザーは選択したディレクトリに制限されます

FreeNAS 9.10.1-U4でSFTP(選択された)ユーザーにホームディレクトリへの制限を許可するのに苦労しています

デフォルトのsshd設定は次のようになります

Subsystem       sftp    /usr/libexec/sftp-server -l ERROR -f AUTH
Protocol 2
UseDNS no
ChallengeResponseAuthentication no
ClientAliveCountMax 3
ClientAliveInterval 15
Port 22
PermitRootLogin yes
AllowTcpForwarding no
Compression no
PasswordAuthentication yes
PubkeyAuthentication yes

次に、選択したSFTPユーザー(所属するグループ経由)をデフォルトのホームディレクトリにロックするために、以下の行を追加しました。

Match Group dirtyUsers
ChrootDirectory /mnt/Backups/tmp
ForceCommand /usr/libexec/sftp-server

しかし、これらの行を追加した後、に属するユーザーはdirtyUsersSFTP を使用してログインできなくなります。

SFTP アクセスのエラー ログ:

Mar  2 18:42:16 backups sshd[69549]: Accepted password for dirtyUser from xxx.xxx.xxx.125 port 57495 ssh2
Mar  2 18:42:16 backups sshd[69551]: fatal: bad ownership or modes for chroot directory "/mnt/Backups/tmp"

どこ

drwxr-xr-x   5 dirtyUser    dirtyUsers        5 Mar 10  2016 /mnt/Backups/tmp/

また、以下の手順を実行しました

chown root:wheel /mnt/Backups/tmp
chmod 755 /mnt/Backups/tmp

chown dirtyUser:dirtyUsers /mnt/Backups/tmp/*
chmod 775 -R /mnt/Backups/tmp/*

ただし、ログインは許可され、その後 SFTP からログオフされます (エラー ログなし)。

それについて何かヒントはありますか?

関連情報