xfce4-session - reboot and halt

Claudio J. Peña claudio_j at fullzero.com.ar
Sat Oct 9 05:36:18 CEST 2004


Ladanyi Akos wrote:

> Hi,

Hi,

> I wanted to enable the two inactive radio buttons in xfce4-session's
> logout dialog
> ('Reboot the computer' and 'Turn of the computer'). So I run configure
> --with-shutdown-style=sudo
> and configured sudo to give access to the commands reboot, halt and 
> shutdown.
>
> Now sudo -l gives:
> User akos may run the following commands on this host:
>    (root) NOPASSWD: /sbin/halt
>    (root) NOPASSWD: /sbin/reboot
>    (root) NOPASSWD: /sbin/shutdown
>
> And it works from the commandline (i.e. when I type 'sudo 
> /sbin/reboot' then the machine
> reboots without asking for a password).
>
> But the last two optios are still grayed out in the logout dialog. 
> What else do I need to
> do to enable them?

>From the Xfce Manual (xfce4-session.html#xfsm-shutdown):

"To be able to shutdown the computer, you must be listed in the systems
sudoers file, in particular, you must be allowed to execute
$libexecdir/xfsm-shutdown-helper as user root (where $libexecdir is the
libexec subdir in the prefix you installed xfce4-session, for example
/usr/local/libexec)."

Cheers,

-- 
Claudio J. Peña
claudio_j at fullzero.com.ar
http://www.nup.com.ar
__________________________________________________

Internet gratis. Siempre.
http://www.fullzero.com.ar





More information about the Xfce mailing list