Linux创建用户后,切换用户报This account is currently not available
a. 增加用户&设定密码
# useradd nagios
# passwd nagios
输入密码;
切换用户出现:
[root@localhost ~]# su - nagios
This account is currently not available.
运用shell修改用户:
命令:usermod -s /bin/bash username
成功解决:
[root@localhost ~]# usermod -s /bin/bash nagios
[root@localhost ~]# su - nagios
[nagios@localhost ~]$ su - root
————————————————
版权声明:本文为CSDN博主「wangmm0218」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/wangmuming/java/article/details/41575873