1. Redhat 7 使用 usermod -L root 禁用 root 用户登陆后,可采用 重置密码 操做来恢复root用户登陆,云服务器和VMware 测试均成功。服务器
2. usermod -L username 等同于 passwd -l username ,为锁定(Lock)用户,禁止其登陆测试
usermod -U username 等同于 passwd -u username ,为解除锁定(Unlock),容许用户登陆spa