Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

修復 Vsftpd 上傳錯誤 553 Could not create file 的 SELinux 布林值設定

編輯:關於 Linux

Vsftpd 登入正常但上傳檔案報 553 Could not create file,通常是 SELinux 阻擋寫入權限。透過調整布林值即可解決。

排查與修復

  1. 查看 FTP 相關布林值:
    getsebool -a | grep ftp
    關鍵輸出:allow_ftpd_full_access --> off
  2. 啟用完整存取權限:
    setsebool allow_ftpd_full_access on
  3. 驗證設定生效:
    getsebool -a | grep ftp
    # allow_ftpd_full_access --> on
  4. 重啟 Vsftpd 服務:
    service vsftpd restart

修改後即可正常上傳檔案。若仍失敗,請檢查目錄權限與 SELinux 上下文標籤。

Copyright © Windows教程網 All Rights Reserved