网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 操作系统 > Linux
本月文章推荐
.Linux 常用命令(其它).
.Linux操作系统下安装显卡驱动的方.
.Linux网络安全之经验谈(3).
.Linux下非Root用户不能绑定1024端.
.Linux下安装Realplayer不能播放启.
.Ethernet HOWTO Linux以太网-HOW.
.Linux 指令篇:日期时间排程--at.
.如何在Linux系统下用DMA方式传输.
.新手学堂:Linux和Windows系统区.
.在Linux系统下递归删除文件或目录.
.Linux操作系统JDK中文字体设置方.
.Linux系统下SSH连接登陆延时的解.
.Linux 指令篇:使用者管理--sudo.
.Linux系统原理知识 进程切换的概.
.搞定Ubuntu 7.10下万能影音播放器.
.细数Linux系统五大点优于Windows.
.实例解析:Linux之Alias导致覆盖.
.Linux操作系统下重定向命令应用及.
.Fedora 8安装realplayer实现网页.
.浅谈Linux优化及安全配置.

SELinux拒绝vsftpd上传文件到用户主目录

发表日期:2008-5-7


 

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

上传文件成功。

上一篇:ARM Linux开机后自动运行特定程序的方法 人气:746
下一篇:Linux操作系统创建ADSL拨号上网方法介绍 人气:808
浏览全部Linux的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐