SELinux拒绝vsftpd上传文件到用户主目录
浏览:45日期:2022-08-02
;系统是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 上传文件成功。
标签:
Linux系统
相关文章:1. 东芝将发布20TB MG10系列机械硬盘 容量增加了11.1%2. 360浏览器被指15分钟内弹9次弹窗 回应:将自查自纠3. 英特尔10nm工艺制造成本同比降低45% 产量超14nm4. Intel 11/12代酷睿不再支持4K蓝光:SGX漏洞成筛子了5. 360数科宣布正式加入FinOps阵营 finops是什么6. 华硕无畏Pro15 2022锐龙版/无畏Pro14锐龙版轻薄本预售7. 英特尔锐炫A770/A750独显价格与i7-12700K处理器类似8. 三星推出512GB CXL内存扩展器2.0 可为CPU增加16TB内存9. 神舟笔记本怎么进入bios设置u盘启动10. 荣耀MagicBook 14价格4999元起 显卡最高可选RTX 2050

