问题情况: 解决方案: 因为在创建用户的时候执行的操作是: useradd -d /home/jiaoyuting/xsc xscuser1 -s /sbin/nologin 查看/etc/shells 需要增加最后一行:/sbin/nologin 重新登录 就可以完美解决问题了。