1. gzyueqian
      13352868059
      首頁 > 新聞中心 > > 正文

      SELinux拒絕vsftpd上傳文件到用戶主目錄

      更新時間: 2008-05-07 15:57:29來源: 粵嵌教育瀏覽量:826

        系統是CentOS 5.1,創建用戶后,不能登陸FTP,在/var/log/messages文件記錄以下信息:

        Mar 31 13:46:15 localhost kernel: audit(1206942375.697:5719): avc: denied { append } for pid=32111 comm="vsftpd" name="test" dev=sda3 ino=19400200 scontext=root:system_r:ftpd_t:s0 tcontext=root:object_r:root_t:s0 tclass=file

        SELinux ftp daemon policy is customizable based on least access required. So by default SElinux does not allow users to login and read their home directories.

        If you are setting up this machine as a ftpd server and wish to allow users to access their home directorories, you need to set the ftp_home_dir boolean.

        執行命令:

        setsebool -P ftp_home_dir 1

        上傳文件成功。

      免費預約試聽課

      亚洲另类欧美综合久久图片区_亚洲中文字幕日产无码2020_欧美日本一区二区三区桃色视频_亚洲AⅤ天堂一区二区三区

      
      

      1. 久久久久久综合岛国免费观看 | 亚洲国产免费综合 | 午夜国产人成视频 | 中文字幕亚洲乱码精品 | 亚洲欧美日本A∨天堂 | 欧美一区二区三区免费A级视频 |