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

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

你可能感兴趣的:(Linux)