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... [...] > > > > > > 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... Cheers > > Friendly, > > Sven Luther -- Carlos Perelló Marín Debian GNU/Linux Sid (PowerPC) Linux Registered User #121232 mailto:carlos@pemas.net || mailto:carlos@gnome.org http://carlos.pemas.net Valencia - Spain
Attachment:
signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente