分类: LINUX
2013-01-11 14:09:30
Connected to 192.168.1.1.
220 (vsFTPd 2.2.2)
User (192.168.1.1:(none)): test
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/test
500 OOPS: priv_sock_get_cmd
Connection closed by remote host.
处理:
ftp 上传文件时提示不能创建文件 目录有读写权限处理:
[root@cjf vsftpd]# getsebool -a|grep ftp
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> off
allow_ftpd_use_cifs --> off
allow_ftpd_use_nfs --> off
allow_tftp_anon_write --> off
ftp_home_dir --> off
ftpd_connect_db --> off
ftpd_disable_trans --> off
ftpd_is_daemon --> on
httpd_enable_ftp_server --> off
tftpd_disable_trans --> off
[root@cjf vsftpd]# setsebool ftpd_disable_trans 1
[root@cjf vsftpd]# setsebool ftp_home_dir 1
Setsebool –P 永久生效
[root@cjf vsftpd]# setsebool -P ftpd_disable_trans 1
[root@cjf vsftpd]# setsebool -P ftp_home_dir 1
[root@cjf vsftpd]# getsebool -a|grep ftp
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> off
allow_ftpd_use_cifs --> off
allow_ftpd_use_nfs --> off
allow_tftp_anon_write --> off
ftp_home_dir --> on
ftpd_connect_db --> off
ftpd_disable_trans --> on
ftpd_is_daemon --> on
httpd_enable_ftp_server --> off
tftpd_disable_trans --> off
[root@cjf vsftpd]# service vsftpd restart
关闭 vsftpd:[确定]
为 vsftpd 启动 vsftpd:[确定]