2011/12/18 Hexchain Tong <richard0053(a)gmail.com>
chmod +s 是这个原因么?…
不是。我贴几条命令的执行结果(有删节),就一目了然了
Ubuntu 11.10
% type -a poweroff
poweroff is /sbin/poweroff
% ls -l /sbin/poweroff
lrwxrwxrwx 1 root root 6 2011-10-27 13:14 /sbin/poweroff -> reboot
Fedora 15
% type -a poweroff
poweroff is /usr/bin/poweroff
poweroff is /sbin/poweroff
% ls -l /usr/bin/poweroff
lrwxrwxrwx. 1 root root 13 May 14 2011 /usr/bin/poweroff -> consolehelper
% ls -l /sbin/poweroff
lrwxrwxrwx. 1 root root 16 Oct 15 13:58 /sbin/poweroff -> ../bin/systemctl