切换用户的时候报这个错:This account is currently not available
-
发现
/etc/passwd
下找到这个用户cat /etc/passwd | grep 用户名
-
发现它的shell是
/sbin /nologin
,这个nologin一看就知道肯定不行,将/sbin /nologin
改成/bin/bash
即可。 -
vipw /etc/passwd
修改完毕保存退出,over!!
更多推荐
Linux解决——This account is currently not available
发布评论