ITPub博客

首页 > Linux操作系统 > Linux操作系统 > liunx下vsftpd上传文件问题

liunx下vsftpd上传文件问题

原创 Linux操作系统 作者:shilei1 时间:2012-10-08 12:49:49 0 删除 编辑
在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博客 ” ,链接:https://blog.itpub.net/196700/viewspace-745939/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: ASM简单管理
请登录后发表评论 登录
全部评论

注册时间:2018-10-10

  • 博文量
    548
  • 访问量
    130254