国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務器 > Ftp服務器 > 正文

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

2024-09-09 20:58:39
字體:
來源:轉載
供稿:網友
 

系統是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

上傳文件成功。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 达州市| 遵化市| 吉林省| 休宁县| 原平市| 金溪县| 大关县| 古田县| 凤城市| 康乐县| 明溪县| 赤水市| 进贤县| 砀山县| 望都县| 南昌县| 宣化县| 二手房| 朝阳市| 扬州市| 石狮市| 黄石市| 宁德市| 循化| 鄂托克前旗| 谷城县| 吴旗县| 紫云| 永新县| 安龙县| 内丘县| 穆棱市| 贵港市| 博客| 甘德县| 松潘县| 南通市| 浪卡子县| 桃源县| 寿宁县| 龙门县|