- Install vsftpd
1apt-getinstallvsftpd - Edit the file /etc/vsftpd.conf and make the following changes:
- Change Yes to No in the following line
1Anonymous_enable = YES - Uncomment the following lines by removing the #
1#local_enable = YES2#write_enable = YES3#local_umask = 0224#chroot_local_user = YES
- Change Yes to No in the following line
- Finally restart the vsftpd
1/etc/init.d/vsftpd - You and any of your users should now be able to FTP the server
- คำสั่งสร้าง default folder สำหรับ anonymous user
sudo mkdir /srv/ftp & sudo usermod -d /srv/ftp ftp
- local_enable = YES คือเปิดให้ user ในระบบ login เข้าใช้ FTP ได้
- write_enable = YES คือ เปิดให้คนใช้ FTP เขียนไฟล์ลง FTP ได้
- local_umask = 022 คือ เป็นการตั้งค่า permission ให้ไฟล์หรือไดเร็คทอรี่ใหม่ใน FTP Folder
- chroot_local_user = YES เป็นการตั้งค่าให้ user ในระบบใช้ home ตัวเองเป็น defautl folder FTP
- Anonymous_enable = YES เปิดให้คนทั่วไปใช้งาน FTP ได้
Related
No comments:
Post a Comment