Files
Obsidian-Main/00. Inbox/vsftpd.md

41 lines
805 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 安裝
```shell
sudo apt-get install vsftpd
```
# 設定檔
## `/etc/vsftpd.conf`
```shell
# 不允许匿名访问 
anonymous_enable=NO 
# 设定可以进行写操作
write_enable=YES 
# 设定本地用户可以访问
local_enable=YES 
# 將所有本機使用者限制在家目錄中NO 則不限制
chroot_local_user=YES
# 設定vsftpd 使用的PAM 模組為vsftpd
pam_service_name=vsftpd
# 設定虛擬帳號的主目錄為/vuserconfig
user_config_dir=/etc/vsftpd/vuserconfig
# 設定FTP 伺服器最大接入客戶端數為10個
max_clients=10
# 設定每個IP位址最大連線數為10 個
max_per_ip=10
allow_writeable_chroot=YES
pasv_enable=YES
pasv_min_port=10000
pasv_max_port=20000
```
# Service control
```shell
sudo service vsftpd restart
```
# 建立使用者資料庫