El mi�, 04 de 06 de 2003 a las 20:39, Sven Luther escribi�: > On Wed, Jun 04, 2003 at 08:32:09PM +0200, Carlos Perell� Mar�n wrote: > > El mi�, 04 de 06 de 2003 a las 20:00, Sven Luther escribi�: > > > On Wed, Jun 04, 2003 at 10:02:47AM -0700, Pete Shinners wrote: > > > > this is more of a gnome than debian question, but... > > > > > > > > how do i enable the "Shutdown" and "Reboot" buttons on the logout > > > > dialog? it seems if i am logged in as root they are available, but i'd > > > > like to shutdown when i'm normally logged in as well. > > > > > > Look at the archive of this list about a discussion i took part in about > > > this selfsame subject. > > > > > > Hopefully it will be part of the gnome 2.4 target, but upto now, you > > > cannot do it (but redhat somehow patched gnome 2.2 to support it). > > > > RedHat did not patched gnome 2.2 to support it, it's supported by > > default, but the problem is that it does not see a way that the user > > executes the "shutdown" command and then it does not show you the > > option. > > Are you sure of that ?
It was last time I looked at it (gnome 1.4) and the official code has not change lot since then... Well, It's not the shutdown command (sorry) the commands it use are "poweroff", "halt" and "reboot" > > > An easy (but really ugly and insecure) solution could be setuid the > > shutdown command and link it at /bin or /usr/bin > > Nope, this does not work, at least when i tried it. shutdown is not > satisfied by setuid privilege, it needs real root. Try with the other commands. > > > RedHat shows it because they use usermode and then they have a > > /usr/bin/shutdown command that lets a normal user shutdown the computer

