迷彩 潜伏 隐蔽 伪装
分类:
2012-12-12 16:21:27
原文地址:解决linux用户ftp目录错误问题:500 OOPS 作者:utdb
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:[确定]