linux 切换用户报错:This account is currently not available.



tips:如果本文对你有用,请爱心点个赞,提高排名,让这篇文章帮助更多的人。谢谢大家!比心❤~


问题发现过程及解决方案


新买的服务器,在用su命令切换用户的时候,报错This account is currently not available。这是因为用户的shell禁止登陆了。执行以下命令即可解决。


usermod -s /bin/bash www

linux  切换用户报错:This account is currently not available._微信

linux  切换用户报错:This account is currently not available._解决方案_02