我可以使用我输入的任何随机密码为任何用户(例如:root或operator存在于 中的任何用户)登录我的机器(FreeBSD 9.1-RELEASE)/etc/passwd...
我试图为rootwith重置密码passwd,但如果我尝试登录,我可以使用我输入的任何随机密码登录......奇怪。
这仅在我直接从tty. 尝试通过 SSH 登录时,一切正常 - 我需要提供正确的密码才能登录。如何解决这个问题?
编辑:内容/etc/ttys:
# name getty type status comments
#
# If console is marked "insecure", then init will ask for the root password
# when going to single-user mode.
console none unknown off secure
#
console none unknown off secure
#
ttyv0 "/usr/libexec/getty Pc" xterm on secure
# Virtual terminals
ttyv1 "/usr/libexec/getty Pc" xterm on secure
ttyv2 …Run Code Online (Sandbox Code Playgroud)