分类: BSD
2012-03-13 11:51:39
---------------------snip----------------------
29 # If console is marked "insecure", then init will ask for the root password
30 # when going to single-user mode.
31 console none unknown off secure <--------这行
32 #
33 ttyv0 "/usr/libexec/getty Pc" cons25 on secure
34 # Virtual terminals
35 ttyv1 "/usr/libexec/getty Pc" cons25 on secure
36 ttyv2 "/usr/libexec/getty Pc" cons25 on secure
---------------------snip----------------------
在这里我们需要把上面所指的第31行:
console none unknown off secure
改成
console none unknown off insecure
这样就设置了取消控制台信任,单用户就需要root权限了,console none unknown off insecure
改成
console none unknown off secure
卸载硬盘,安装会原来的机器上 ,启动进单用户,可以了吧