在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/