After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 84054 - /usr/bin/poweroff should be preferred over /sbin/poweroff
/usr/bin/poweroff should be preferred over /sbin/poweroff
Status: RESOLVED FIXED
Product: gnome-session
Classification: Core
Component: gnome-session
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks: 111305
 
 
Reported: 2002-06-04 07:23 UTC by Michele Campeotto
Modified: 2005-01-10 17:27 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Michele Campeotto 2002-06-04 07:23:50 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.
Comment 1 James Henstridge 2002-06-04 07:34:00 UTC
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.
Comment 2 Mark McLoughlin 2005-01-10 17:27:55 UTC
We use GDM to shutdown/reboot in GNOME 2.9, so this shouldn't be a problem anymore