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

2018-01-12  本文已影响33人  lookphp

创建用户后,切换用户报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**

参考文档:
Linux创建用户后,切换用户报This account is currently not available

上一篇下一篇

猜你喜欢

热点阅读