
有沒有辦法在 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
預先感謝您的任何幫助!