GNOME Bugzilla – Bug 84054
/usr/bin/poweroff should be preferred over /sbin/poweroff
Last modified: 2005-01-10 17:27:55 UTC
For the actions in the logout window, /usr/bin/poweroff should probably be preferred over /sbin/poweroff (and /usr/bin/reboot to /sbin/reboot) to help people with PAM and consolehelper.
Just an extra note from discussions on IRC: If you configure gnome-session as root on most linux distros, /sbin will occur in the path before /usr/bin. Therefore, the AC_PATH_PROGS macro will pick the one in /sbin instead of the one in /usr/bin. This means that the consolehelper version won't get selected, and normal users will not be able to reboot or shutdown the system from the logout dialog (even if the sysadmin configured console helper program to allow them to do so). One possible fix would be to provide [/usr/bin:$PATH] as the forth argument to AC_PATH_PROGS so that the /usr/bin version would take precedence even if /sbin was first in the path.
We use GDM to shutdown/reboot in GNOME 2.9, so this shouldn't be a problem anymore