liunx下vsftpd上传文件问题

在contos6.3正常配置vsftpd,在oracle的home是 /home/oracle 可以正常上传,别的用户就不能够正常上传,很奇怪的问题。 权限本身没有问题。

出现如下问题:
C:\Users\Administrator>ftp 10.×.109.65
连接到 10.217.109.65。
220 (vsFTPd 2.2.2)
用户(10.217.109.65:(none)): dump
331 Please specify the password.
密码:
230 Login successful.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
11
226 Directory send OK.
ftp: 收到 4 字节,用时 0.00秒 2.00千字节/秒。
ftp> bin
200 Switching to Binary mode.
ftp> put afiedt.buf
200 PORT command successful. Consider using PASV.
553 Could not create file.


正常考虑应该是selinux问题:
执行
[root@log ~]# setsebool -P ftpd_disable_trans 1
libsemanage.dbase_llist_set: record not found in the database
libsemanage.dbase_llist_set: could not set record value
Could not change boolean ftpd_disable_trans
Could not change policy booleans
没有这个记录
[root@log ~]#getsebool -a 
如下执行:
[root@log ~]# setsebool allow_ftpd_full_access 1
[root@log ~]#  setsebool allow_ftpd_use_cifs 1
[root@log ~]# setsebool allow_ftpd_use_nfs 1
[root@log ~]#  setsebool -P ftp_home_dir 1
[root@log ~]# setsebool httpd_enable_ftp_server 1
[root@log ~]# setsebool tftp_anon_write 1

[root@log ~]# setsebool -P allow_ftpd_anon_write=1
[root@log ~]# setsebool -P allow_ftpd_full_access=1
[root@log ~]# /etc/init.d/xinetd restart
Stopping xinetd:   OK  ]
Starting xinetd:   OK  ]
[root@log ~]#
问题解决。

# getsebool -a | grep ftp

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/196700/viewspace-745939/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/196700/viewspace-745939/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值