帮助!
使用新创建的用户登录 RHEL 7.9 服务器时遇到问题。用户也已添加到AllowUsers
ofsshd_config
和sshd
服务中。
似乎用户密码设置不正确。有人可以帮忙吗?我尝试寻找解决方案,但尚未找到任何内容。请参阅下面的详细信息。谢谢
[root@server1 security]# useradd test1
[root@server1 security]# passwd test1
Changing password for user test1.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@server1 security]# passwd -S test1
test1 LK 2021-08-26 7 90 7 30 (Password locked.)
[root@server1 security]# passwd -u test1
Unlocking password for user test1.
passwd: Warning: unlocked password would be empty.
passwd: Unsafe operation (use -f to force)
[root@server1 security]# passwd -uf test1
Unlocking password for user test1.
passwd: Success
[root@server1 security]# passwd -S test1
test1 NP 2021-08-26 7 90 7 30 (Empty password.)
[root@server1 security]# passwd test1
Changing password for user test1.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@server1 security]# passwd -S test1
test1 NP 2021-08-26 7 90 7 30 (Empty password.)
[root@server1 security]# cat /etc/passwd | grep test1
test1:x:1011:1011::/home/test1:/bin/bash
[root@server1 security]# cat /etc/shadow | grep test1
test1::18865:7:90:7:30::
UID 只有一项1101
-
awk -F: '$3=="1011"' /etc/passwd
此外,这是一个独立的服务器。它不使用任何外部身份验证系统。