On Wed, Jun 04, 2003 at 09:11:41PM +0200, Carlos Perell� Mar�n wrote: > El mi�, 04 de 06 de 2003 a las 21:06, Sven Luther escribi�: > [...] > > > > Well, It's not the shutdown command (sorry) the commands it use are > > > "poweroff", "halt" and "reboot" > > > > Ok, i will try it. > > > > > > > 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. > > > > Ok, altough i was launching the setuid shutdown command from the > > console, and it was not happy. I somehow doubt that poweroff, halt or > > reboot will behave any differently, after all, they are only wrappers > > around shutdown or something like that. > > > I don't know, perhaps with the sudo script you were suggesting...
Will test. > [...] > > > > > > > > i assume this is permissions on something, but i have been unable > > > > > > > to > > > > > > > figure out what to change. i'm using debian unstable, but i'm > > > > > > > sure > > > > > > > applies to all gnome2 platforms. > > > > > > > > > > > > Yep. > > > > > > > > > > Yes it applies to all gnome 1.4 and 2.x releases (perhaps all 1.x, but > > > > > I'm not sure). > > > > > > > > A workaround for gnome 1.4 was to have a shutdown button which called > > > > sudo gshutdown. This does not work anymore for 2.X though. > > > > > > You should be able to do it also with the --with-reboot-command and > > > --with-halt-command options at compile time, but perhaps you should pass > > > "sudo, gshutdown" instead of "sudo gshutdown" > > > > But this does not work with 2.x, right ? > > I took those options from gnome-session 2.3 directly from GNOME's CVS so > it should work with it... I wonder if they are already there in gnome-session 2.2 and if yes, if Christian Marillat would enable a call to a wrapper script or something such in the default debian package. Friendly, Sven Luther

