系统是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
上传文件成功。
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- FTP服务器 (142篇文章)
- 强悍!脱兔实用技巧大放送 (143次浏览)
- 快车VS迅雷 下载速度火拼实测 (107次浏览)
- 轻轻松松批量下载相册中的照片 (22次浏览)
- 快车2.0 Beta 6新版发动BT提速革命 (19次浏览)
- P2P下载中 保护系统安全的五大步骤 (18次浏览)
- 体验漫步家Pronto!的酷棒通和P2P功能 (15次浏览)
- 首发!用事实说话:快车BT下载真能提速30%? (12次浏览)
- 梅勒斯木马下载器变种 (9次浏览)
- 机器狗木马加壳处理 后台下载恶意程序 (7次浏览)
- .Net中上传图片按比例自动缩小或放大 (7次浏览)



