[Pkg-xfce-devel] Shutting down without entering password

Daniel Dickinson cshore at bmts.com
Sat Dec 20 06:21:03 UTC 2008

On Mon, 08 Dec 2008 07:25:41 +0100
Yves-Alexis Perez <corsac at debian.org> wrote:

> On dim, 2008-12-07 at 18:06 -0500, Daniel Dickinson wrote:
> > 
> > Okay, thanks.  I don't suppose there is anyway of making this easier
> > to
> > find for new users?  Is it on the wiki?  (Not that I thought to look
> > there, but someone might).  What about as a 'tip'?
> That may be a good idea yeah. Could you word a patch for the tips (I
> think it can be applied upstream too if generic enough).

Okay, I'm thinking of two tips:

If you want to shutdown without entering your password and you have
D-Bus and HAL (most modern desktops do), then add yourself to the
'powerdev' group.   

On Debian this can be accomplished with 
su -c 'adduser login-namepowerdev' 
from the terminal (replacing login-name with your user name).


If you want to shutdown without entering your password and you have
'sudo' installed (almost all desktops will), then you need to
edit /etc/sudoers to contain a line such as the following:

login-name	ALL=(root) NOPASSWD: /usr/sbin/xfsm-shutdown-helper

(replacing login-name with your user name).  On Debian this can be
accomplished typing 'su -c visudo' in the terminal.


The second one may be different for non-debian systems because the
readme from upstream says /usr/local/libexec/xfsm-shutdown-helper

The first one only is correct of other systems also use powerdev
otherwise it too is debian-specific.

It might be possible to infer the names of those things from the type
of system ./configure is running on and the --xx-prefix options given

If those are too wordy, or too short and can be lengthened without
being too much for a tip, let me know.  If they're the right length but
you feel they need work I'll try to improve them.


And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore
GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C      http://gnupg.org
The C Shore: http://www.wightman.ca/~cshore
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20081220/92e9a826/attachment.pgp 

More information about the Pkg-xfce-devel mailing list