系統公告
熱情贊助
行事曆
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 |
最近文章發表
yam今日我最殺
最新的回應
- 目前沒有留言
Meromero
Time clock
其它資訊
本部落所刊登之內容,皆由作者個人所提供,不代表 yam天空部落 本身立場。
June 16, 2008
這份教學環境是在CentOS 5
在架站之前
請先確認是否有安裝vsftpd服務
如果沒有可以到RPM官網下載
國內下載地點可前往各大學FTP站
本次範例版本為vsftpd-2.0.5-10.el5.i386
開啟/etc/vsftpd的目錄下的vsftpd.conf,準備對檔案系統進行基本設定。
1. 首先將匿名登入取消。
將anonymous_enable=YES ,前面加上 " # " 變成 #anonymous_enable=YES
2. 使用者允許寫入。
將 #write_enable=YES,前面刪除 " # " 變成write_enable=YES
3. 開啟log記錄檔。
將#xferlog_file=/var/log/vsftpd.log,前面刪除 " # " 變成 xferlog_file=/var/log/vsftpd.log
4. 鎖定使用者家目錄,以防使用者不小心更改到主機設定檔。
將 #chroot_list_enable=YES,前面刪除 " # " 變成 chroot_list_enable=YES
將 #chroot_list_file=/etc/vsftpd/user_list,前面刪除 " # " 變成 chroot_list_file=/etc/vsftpd/user_list
5. 在檔案最尾端加上以下設定。
userlist_deny=NO------------------------------>userlis檔案中的使用者取消拒絕登入
userlist_enable=YES------------------------->userlist啟動
userlist_file=/etc/vsftpd/user_list---------->userlist檔案位置
use_localtime=YES---------------------------->傳上來的檔案時間以Server時間為主
max_clients=20---------------------------------->允許連線最大client數
max_per_ip=2------------------------------------>同一ip同一時間允許多少次連線
6. 最後存檔離開檔案。
由於我們在第4點中將使用者清單指定到user_list檔案
所以現在要進行user_list檔案的改寫
vi進去後,加上允許的使用者帳號
帳號必須是在你的系統下存在的使用者喔
開啟/etc/vsftpd/user_list,並將允許登入File Server的使用者帳號加入此檔案。
範例 :
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are allow.
user001
test123
mary
在架站之前
請先確認是否有安裝vsftpd服務
如果沒有可以到RPM官網下載
國內下載地點可前往各大學FTP站
本次範例版本為vsftpd-2.0.5-10.el5.i386
開啟/etc/vsftpd的目錄下的vsftpd.conf,準備對檔案系統進行基本設定。
1. 首先將匿名登入取消。
將anonymous_enable=YES ,前面加上 " # " 變成 #anonymous_enable=YES
2. 使用者允許寫入。
將 #write_enable=YES,前面刪除 " # " 變成write_enable=YES
3. 開啟log記錄檔。
將#xferlog_file=/var/log/vsftpd.log,前面刪除 " # " 變成 xferlog_file=/var/log/vsftpd.log
4. 鎖定使用者家目錄,以防使用者不小心更改到主機設定檔。
將 #chroot_list_enable=YES,前面刪除 " # " 變成 chroot_list_enable=YES
將 #chroot_list_file=/etc/vsftpd/user_list,前面刪除 " # " 變成 chroot_list_file=/etc/vsftpd/user_list
5. 在檔案最尾端加上以下設定。
userlist_deny=NO------------------------------>userlis檔案中的使用者取消拒絕登入
userlist_enable=YES------------------------->userlist啟動
userlist_file=/etc/vsftpd/user_list---------->userlist檔案位置
use_localtime=YES---------------------------->傳上來的檔案時間以Server時間為主
max_clients=20---------------------------------->允許連線最大client數
max_per_ip=2------------------------------------>同一ip同一時間允許多少次連線
6. 最後存檔離開檔案。
由於我們在第4點中將使用者清單指定到user_list檔案
所以現在要進行user_list檔案的改寫
vi進去後,加上允許的使用者帳號
帳號必須是在你的系統下存在的使用者喔
開啟/etc/vsftpd/user_list,並將允許登入File Server的使用者帳號加入此檔案。
範例 :
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are allow.
user001
test123
mary
檢視行動版網頁 | 檢視正常版網頁





