今天建立跳转机用户登录,出现异常,提示“This account is currently not available”。
由于是分两批次建立的,中间改过脚本文件,不确定问题原因。逐台登录看用户权限。
问题原因:
shell是/sbin/nologin
daniao:x:503:503::/home/daniao:/sbin/nologin
用命令解决:
usermod -s /bin/bash username
登录正常。
转载于:https://blog.51cto.com/ichange/1285751