樹心幽徑

« 20180426安裝apache2 httpd | Main | 20180426在Ubutun安裝apache2網頁及sshd伺服程式並用pietty連線編寫一個網頁 »

20180426安裝vsftpd
2018/04/26,13:32

(1)treehrt@hrt:~$ sudo apt-get install vsftpd
[sudo] password for treehrt:
正在讀取套件清單... 完成
正在重建相依關係         
正在讀取狀態資料... 完成
以下套件為自動安裝,並且已經無用:
  linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic
  linux-headers-4.4.0-112 linux-headers-4.4.0-112-generic
  linux-headers-4.4.0-116 linux-headers-4.4.0-116-generic
  linux-headers-4.4.0-98 linux-headers-4.4.0-98-generic
  linux-image-4.4.0-101-generic linux-image-4.4.0-112-generic
  linux-image-4.4.0-116-generic linux-image-extra-4.4.0-101-generic
  linux-image-extra-4.4.0-112-generic linux-image-extra-4.4.0-116-generic
Use 'sudo apt autoremove' to remove them.
下列【新】套件將會被安裝:
  vsftpd
升級 0 個,新安裝 1 個,移除 0 個,有 382 個未被升級。
需要下載 126 kB 的套件檔。
此操作完成之後,會多佔用 371 kB 的磁碟空間。
下載:1 http://tw.archive.ubuntu.com/ubuntu xenial/main i386 vsftpd i386 3.0.3-3ubuntu2 [126 kB]
取得 126 kB 用了 0秒 (184 kB/s)                      
正在預先設定套件 ...
選取了原先未選的套件 vsftpd。
(讀取資料庫 ... 目前共安裝了 338650 個檔案和目錄。)
準備解開 .../vsftpd_3.0.3-3ubuntu2_i386.deb ...
解開 vsftpd (3.0.3-3ubuntu2) 中...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
設定 vsftpd (3.0.3-3ubuntu2) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
treehrt@hrt:~$

 

(2) treehrt@hrt:~$ sudo vi /etc/vsftpd.conf

:

 

 

# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=YES

 

(3)

treehrt@hrt:~$ sudo vi /etc/vsftpd.chroot_list
[sudo] password for treehrt:

treehrt@hrt:~$ cat /etc/vsftpd.chroot_list
treehrt
treehrt@hrt:~$

 

(4)

treehrt@hrt:~$ ftp localhost
Connected to localhost.
220 Welcome to 90 FTP service.
Name (localhost:treehrt):
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> exit
221 Goodbye.
treehrt@hrt:~$

 

(5)參考:

http://www.kmvs.km.edu.tw/lf/index.php?op=ViewArticle&articleId=320&blogId=35

 

http://pk5566.blogspot.tw/2011/01/vsftpd.html

 

迴響

 
Accessible and Valid XHTML 1.0 Strict and CSS Powered by LifeType