国产探花免费观看_亚洲丰满少妇自慰呻吟_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

上傳文件成功。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 闸北区| 合肥市| 石泉县| 台江县| 大宁县| 绍兴市| 涡阳县| 健康| 连州市| 景德镇市| 萨嘎县| 育儿| 宝坻区| 平阳县| 黎川县| 汕头市| 平远县| 南川市| 宁海县| 张北县| 搜索| 长沙市| 吉木萨尔县| 平武县| 五大连池市| 临夏市| 荆州市| 蒲城县| 达尔| 丰原市| 新建县| 黔江区| 防城港市| 库车县| 抚宁县| 孝感市| 西贡区| 东港市| 邵阳县| 庄河市| 涟水县|