- linux搭建ftp服务时,登录时报错如下:
这时需要做一步操作,cat /etc/passwd 看看自己登录的账户主目录和登陆shell是什么
这时再次查看/etc/shells 是否有自己登录的shell如果没有则需要添加:
如图最后一行是我添加的。
这时再次登录。
所以ftp登录时,需要关注下自己的shell是否在/etc/shells文件里面
权威的解释(来自linuxfromscratch)
The /etc/shells File
The shells file contains a list of login shells on the system. Applications use this file to determine whether a shell is valid. For each shell a single line should be present, consisting of the shell’s path, re