一般使用者連線時出現 500 OOPS 的錯誤訊息
# lftp -u t850008 127.0.0.1
Password:
lftp t850008@127.0.0.1:~> ls
ls: Login failed: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()[@more@]解決方式:
1. 修改 /etc/vsftpd/vsftpd.conf 設定檔
# vim /etc/vsftpd/vsftpd.conf
加入下面一行
allow_writeable_chroot=YES
2. 重新啟動 vsftpd FTP Server
# systemctl stop vsftpd
# systemctl start vsftpd
3. 測試一下
# lftp -u t850008 127.0.0.1
Password:
lftp t850008@127.0.0.1:~> ls
-rw——- 1 1000 1000 73121952 Jun 26 00:51 VMware-player-12.1.0-3272444.exe
-rw——- 1 1000 1000 153807839 Jun 26 00:52 Windows 7 Games for Windows 10 and 8.exe
-rw——- 1 1000 1000 324096 Jun 26 00:51 pietty0327.exe