2012年5月17日 星期四

vsftp 無法使用/bin/false

這二天一直被vsftp困擾著,因為我在/etc/passwd裡,將實體用戶的shell改成/bin/false時,用戶在登入ftp會出現530的錯誤,即使帳號密碼都是正確,仍然無法登入ftp,後來google了一下,只要將/bin/false這個寫入到/etc/shells,使其為標準shell即可解決。
PS 不建議從/etc/pam.d/vsftp裡面去做修改,因為我也不是很清楚pam的模組。

以上環境為Ubuntu 11.04 server x64



參考網址:
http://www.wangchao.net.cn/bbsdetail_1420808.html
http://linux-tips.org/article/70/users-with-bin-false-shell-to-login-on-vsftpd
http://www.linuxfly.org/post/312/