Tag: Lion
※注意点
sudo pmset -a hibernatemode 0
OSX hasn't put actual users (as opposed to subsystem accounts) in /etc/passwd since at least Tiger. Instead, they go into Directory Services (NetInfo in Tiger), and it sounds like in this case the Directory Services daemon crashed or got stuck and you had to wait for launchd to notice and restart it.
bash-3.2# ps -ef|grep securityd 0 43 1 0 18Feb12 ?? 0:10.89 /usr/sbin/securityd -i bash-3.2# kill -9 43 bash-3.2# /usr/sbin/securityd -i &