Linux创建用户后,切换用户报This account is currently not available

解决办法1:
运用shell修改用户:
命令:usermod -s /bin/bash username
解决办法2:
比如我是 su elasticsearch的时候出现的问题
用cat看看 apache的帐号信息
# cat /etc/passwd | grep apache
发现它的shell是“/sbin /nologin”,需要改成“/bin/bash”
posted @ 2022-06-16 15:35  亲爱滴hh  阅读(375)  评论(0)    收藏  举报