session

ewajacobs ewajacobs at home.nl
Sun Oct 24 07:20:59 CEST 2004


On Fri, 2004-10-22 at 14:56 -0700, Brian J. Tarricone wrote:
> On 10/22/04 12:10, ewajacobs wrote:
> > On Thu, 2004-10-21 at 17:53 -0700, Brian J. Tarricone wrote
> > > you need to have sudo set up to allow your user to run 'shutdown', and
> > > possibly 'reboot', 'halt', and/or 'poweroff' as well.
> > Nice try ;)
> > But I already did 'chmod +s /sbin/poweroff' and the same for reboot ages
> > ago, so that isn't the problem. :)
> > Cheers
> 
> hmm, last time i tried that, when i ran it, it noticed the suid bit and
> refused to shut the machine down (presumably, for security reasons).  at
> any rate, i believe the shutdown helper requires that sudo be set up
> properly, so the permissions on the binaries themselves are irrelevant.
> 
> i believe the "nice try" goes to you ^_~.
Hmm, blah :)
I tried the /etc/sudoers approach by adding the lines:
q  localhost=/sbin/shutdown -h now
q  localhost=/sbin/halt
q  localhost=/sbin/poweroff
q  localhost=/sbin/reboot

But the thing still comments out two options (reboot and turn off)

I forgot something?
cheers

Emil




More information about the Xfce mailing list