New user cant login, Log : logname= uid=0 euid=0

新建User無法登入

Error Log :
localhost sshd[32556]: pam_unix(sshd:session): session opened for user XXX by (uid=0)
localhost vsftpd[32549]: pam_unix(vsftpd:auth): authentication failure; logname= uid=0 euid=0 tty=ftp ruser=XXX rhost=10.10.112.242 user=XXX

原因:
/etc/passwd中指定了不同的shell
XXX:x:9215:904::/data/:/usr/local/sbin/login.mnu

解法:
echo “/usr/local/sbin/login.mnu” >> /etc/shells