配置過程linux
一、關閉防火牆 service iptables stop數據庫
二、啓動vsftpd service vsftpd startvim
三、添加root用權windows
cd /etc/vsftpd 更改文件ftpusers 和 user_list ,去掉對root用戶的限制,更改後reboot;瀏覽器
四、配置Leapftp,創建站點,正確輸入相關信息便可;服務器
問題1:ide
在windows命令行 ping 時出現"未知號錯誤"學習
解決:測試
出現這種錯誤有不少緣由致使,更改相關的配置後未重啓,建議reboot下;spa
講一下我遇到的狀況,仍然出現此錯誤,整了老半天,原來是由於「本地鏈接」設置了「鏈接共享」致使,取消鏈接共享便可;
問題2:
在開了root用戶上傳權限,也關了系統的防火牆,但ftp鏈接的時候依然還會出現 "500 OOPS:cannot change directory:/root" 錯誤,如何解決呢?
解決:
一、 查看 SELinux 的狀態: sestatus -b | grep ftp 確切地說,只是查看了ftp的狀態。
二、 在出現的結果中能夠看到
ftp_home_dir off
tftpd_disable_trans off
只要把其中之一設置爲on就能夠
三、 setsebool -P ftpd_disable_trans on 或者 setsebool -P ftp_home_dir on
四、 重啓vsftpd: service vsftpd restart
VsFTP出現500 OOPS: cannot change directory的解決辦法
關於RHEL5.1虛擬用戶文件刪除權限配置
Microsoft Windows XP [版本 5.1.2600]
(C) 版權全部 1985-2001 Microsoft Corp.
C:\Documents and Settings\michael>
ftp 192.168.0.188 #登陸FTP服務器
Connected to 192.168.0.188. 220 (vsFTPd 2.0.5) User (192.168.0.188:(none)): testvuser #輸入用戶名 331 Please specify the password. Password: #輸入密碼 230 Login successful. #登陸成功 ftp> dir #查看文件,FTP服務器沒有文件哈~ 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. 226 Directory send OK. ftp> mkdir michael #創建michael目錄 257 "/michael" created ftp> bin #採用二進制傳輸。若是你要上傳下載,這一步很重要,不先執行這個命令,上傳下載會很慢。 200 Switching to Binary mode. ftp> lcd e:\cisco #定位本地默認文件夾,定位到E盤的Cisco目錄 Local directory now E:\Cisco. ftp> !dir #查看本地文件夾中的文件及目錄 驅動器 E 中的卷沒有標籤。 卷的序列號是 24DE-510D
E:\Cisco 的目錄
2009-03-30 16:25 <DIR> .
2009-03-30 16:25 <DIR> .. 2008-04-30 13:26 67,335,990 CCNA學習指南(第六版).pdf 2009-03-03 07:43 1,337,166 Cluster_Administration5.0.pdf 2009-03-01 13:40 149,676 UNIXCode.rar 2009-03-16 16:55 357,589 usboot-v1.70.rar 4 個文件 69,180,421 字節 2 個目錄 1,103,183,872 可用字節 ftp> put Cluster_Administration5.0.pdf #上傳文件 200 PORT command successful. Consider using PASV. 150 Ok to send data. 226 File receive OK. ftp: 發送 1337166 字節,用時 0.13Seconds 10697.33Kbytes/sec. ftp> cd michael #切換到michael目錄 250 Directory successfully changed. ftp> put CCNA學習指南(第六版).pdf #上傳文件 200 PORT command successful. Consider using PASV. 150 Ok to send data. 226 File receive OK. ftp: 發送 67335990 字節,用時 6.16Seconds 10938.27Kbytes/sec. ftp> put UNIXCode.rar #上傳文件 200 PORT command successful. Consider using PASV. 150 Ok to send data. 226 File receive OK. ftp: 發送 149676 字節,用時 0.01Seconds 9978.40Kbytes/sec. ftp> put usboot-v1.70.rar #上傳文件 200 PORT command successful. Consider using PASV. 150 Ok to send data. 226 File receive OK. ftp: 發送 357589 字節,用時 0.03Seconds 11535.13Kbytes/sec. ftp> dir #查看michael目錄中的文件及目錄 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. -rw------- 1 501 501 67335990 Mar 30 08:27 CCNA學習指南(第六版).p df -rw------- 1 501 501 149676 Mar 30 08:27 UNIXCode.rar -rw------- 1 501 501 357589 Mar 30 08:28 usboot-v1.70.rar 226 Directory send OK. ftp: 收到 228 字節,用時 0.00Seconds 228000.00Kbytes/sec. ftp> prompt #切換交互模式,關閉後批量刪除不會再提示,此外還有一種verbose 模式。若是打開,將顯示全部 ftp 響應。在文件傳送完成後,將同時顯示與傳送效率有關的統計信息。默認狀況下,verbose 是打開的。 Interactive mode Off . ftp> mdelete * #批量刪除michael目錄下的文件 200 Switching to Binary mode. 250 Delete operation successful. 250 Delete operation successful. 250 Delete operation successful. ftp> dir #查看一下,michael目錄下已經沒有文件 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. 226 Directory send OK. ftp> cd .. #切換到上級目錄 250 Directory successfully changed. ftp> dir #查看文件 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. -rw------- 1 501 501 1337166 Mar 30 08:26 Cluster_Administration5. 0.pdf drwx------ 2 501 501 4096 Mar 30 08:32 michael 226 Directory send OK. ftp: 收到 152 字節,用時 0.00Seconds 152000.00Kbytes/sec. ftp> delete Cluster_Administration5.0.pdf #刪除文件 250 Delete operation successful. ftp> rmdir michael #刪除michael文件夾 250 Remove directory operation successful. ftp> ls #查看一下,確認沒有文件及文件夾了哈~ 200 PORT command successful. Consider using PASV. 150 Here comes the directory listing. 226 Directory send OK. ftp> bye #退出 221 Goodbye.
C:\Documents and Settings\michael>
|