民國106年 第3梯次 網路架設乙級 學科
第63題
於L i n u x 系統中,欲以v s f t p d 建立F T P 伺服器,下列關於/ e t c / v s f t p d / v s f t p d…
題目
於L i n u x 系統中,欲以v s f t p d 建立F T P 伺服器,下列關於/ e t c / v s f t p d / v s f t p d . c o n f 之敘述 哪些正確?
- (1) v s f t p d . c o n f 中之g u e s t _ e n a b l e = Y E S ,表示設定任何實體使用者,均會被假設成為g u e s t
- (2) v s f t p d . c o n f 中之l o c a l _ e n a b l e = Y E S,表示允許在/ e t c / p a s s w d 內的帳號以實體使用者的方式登入v s f t p d 伺服器
- (3) v s f t p d . c o n f 中之g u e s t _ u s e r n a m e = f t p ,表示在g u e s t _ e n a b l e = Y E S 時,預設會取得f t p 使用者的相關權限
- (4) v s f t p d . c o n f 中之l o c a l _ m a x _ r a t e = 0 ,表示不允許實體使用者傳送任何資料
官方答案
(1) v s f t p d . c o n f 中之g u e s t _ e n a b l e = Y E S ,表示設定任何實體使用者,均會被假設成為g u e s t、(2) v s f t p d . c o n f 中之l o c a l _ e n a b l e = Y E S,表示允許在/ e t c / p a s s w d 內的帳號以實體使用者的方式登入v s f t p d 伺服器、(3) v s f t p d . c o n f 中之g u e s t _ u s e r n a m e = f t p ,表示在g u e s t _ e n a b l e = Y E S 時,預設會取得f t p 使用者的相關權限
解析
guest_enable=YES 的作用是把所有非匿名的登入都當成 guest 來處理,登入者會套用 guest_username 所指定帳號(例如 ftp)的權限與家目錄,因此第1、3項正確。local_enable=YES 才是開放 /etc/passwd 中的實體帳號以本機使用者身分登入,第2項正確。第4項的 local_max_rate 單位為 bytes/sec,設為 0 代表「不限速」,而非禁止傳送資料,方向完全相反。
AI 參考解析(推得答案已與官方答案比對一致),非官方公告內容,僅供備考參考。