[root@Radius ftp]# useradd -d /home/h™πγ©uawei -g ftp -s /bin/false hua&wei
[root@Radius ftp]#passwd huawe¶¥®i
[root@Radius ftp]# passwd h£©§uawei
更改用(yòng)戶 huawei 的(de)密碼 。
新的(de) 密碼:
重新輸入新的(de) 密碼:
passwd: 所有(yǒu)的(de)身(shēn)份≈✘驗證令牌已經成功更新。
[root@Radius ftp]# ftp 127.0.φ 0.1
Connected to 127.0.0.1 (127.0.0.1&®).
220 (vsFTPd 2.2.2)
Name (127.0.0.1:root): huawei
331 Please specify the password.
Password:
530 Login incorrect.
ftp>
[root@Radius ftp]# tail /var/log/secu→≈re
Sep 11 10:16:39 radius proftp ←πd[11888]: localhost (&≤∑192.168.1.199[192.168.1.19∞≈9]) - USER huawei (Login failed): Inv✔€ ©alid shell: '/bin/fa↔γ±€lse'
Sep 11 10:16:56 radius proftpd[11889≥Ω∞♥]: localhost (192.168.1.199[192.168.1.↓<✘199]) - USER huawei (Login failed): →©Invalid shell: '/bin/≥↔false'
Sep 11 10:23:53 radius proftpd[12044↑'↕₽]: localhost (192.168.1.199[λ★÷•192.168.1.199]) - USER huawei∏' (Login failed): Invalid shell: '/bin/fλ"↑§alse'
上(shàng)述錯(cuò)誤日(rì)志(zhì)确定為(wè≈§≠♠i)用(yòng)戶shell為(wèi)/bin/false後 δ☆,用(yòng)戶無法登陸FTP,vsftpd默ו§認會(huì)檢查用(yòng)戶的(de)shell,如(r∑δú)果用(yòng)戶的(de)shell在/etc/shel£<<&ls沒有(yǒu)記錄,則無法登陸ftp
1.在/etc/shells中添加一(yī)行(xíngε↕↔)"/bin/false";
2.重啓vsftpd服務。
[root@Radius opt]# vi /☆δetc/shells /bin/sh |
無