After creating a user in Linux, switch users to report this account is currently not available
a. Add user & set password
# useradd nagios
# passwd nagios
enter password;
Switch user appears:
[root@localhost ~]# su - nagios
This account is currently not available.
Use shell to modify users:
命令:usermod -s /bin/bash username
Successfully resolved:
[root @ localhost ~] # usermod -s / bin / bash nagios
[root @ localhost ~] # su-nagios
[nagios @ localhost ~] $ su-root
——————————————— -
Disclaimer: this article is the original article CSDN bloggers "wangmm0218", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https://blog.csdn.net/wangmuming/java/article/details/41575873