เริ่มเลย ทำการติดตั้ง โปรแกรมก่อน
- $ sudo apt-get install vsftpd
Output: ทำตามขั้นตอนด้านล่างเลยนะครับ
- Reading package lists… DoneBuilding dependency treeReading state information… DoneThe following NEW packages will be installed: vsftpd0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.Need to get 121kB of archives.After unpacking 438kB of additional disk space will be used.Get:1 http://us.archive.ubuntu.com edgy/main vsftpd 2.0.4-0ubuntu5 [121kB]Fetched 121kB in 0s (246kB/s)Selecting previously deselected package vsftpd.(Reading database … 31396 files and directories currently installed.)Unpacking vsftpd (from …/vsftpd_2.0.4-0ubuntu5_amd64.deb) …Setting up vsftpd (2.0.4-0ubuntu5) …Adding system user `ftp’ with uid 106…Adding new user `ftp’ (106) with group `nogroup’.Not creating home directory `/home/ftp’. * Starting FTP server: vsftpd
เสร็จแล้วทำการ Configure /etc/vsftpd.conf โดยใช้คสั่ง nano หรือ vi ก็ได้ครับ แล้วแต่ความถนัด อิอิ ส่วนผมจะใช้ nano
อ้างอิง$ sudo nano /etc/vsftpd.conf
แล้วเข้าไปเปลี่ยน ตามนี้เลยนะครับ
- local_enable=YES
- write_enable=YES
- chroot_local_user=YES
เสร็จแล้วให้ save แล้ว รอง restart vsftpd
- $ sudo /etc/init.d/vsftpd restart
เสร็จแล้วรองใช้งานดูนะครับ ง่าย ๆ รวดเร็ว