
Ubuntu OS 20.04 で sftp を使用してユーザーを特定のホーム ディレクトリに制限し、そのディレクトリへの書き込みアクセス権を付与する方法はありますか?
各ユーザーが自分のディレクトリのみ閲覧でき、他のディレクトリは参照できないようにできました。ただし、自分のディレクトリに書き込むことはできなくなりました。以下は /etc/ssh/sshd_config の設定です。
Match User XXXXXXXXX
ForceCommand internal-sftp
PasswordAuthentication yes
ChrootDirectory %h
PermitTunnel no
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no
ご協力いただければ幸いです。