歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

解決linux用戶ftp目錄錯誤問題:500 OOPS

解決linux用戶ftp目錄錯誤問題:500 OOPS   C:\Documents and Settings\Administrator>ftp 192.168.1.1 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 上傳文件時提示不能創建文件 目錄有讀寫權限處理:  www.2cto.com   [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:[確定]  
Copyright © Linux教程網 All Rights Reserved