Etch from scratch – Xfce shutdown

The tie it up and lock it all down as a default approach is sometimes very frustrating. Having logged in to an Xfce session, when I came to shut down my computer, I can’t do this from within my log in as the button is greyed out. Not that I have ever needed to use it, but so is the ‘Restart’ button.

The Xfce – Session Manager documentation on my computer says that you have to be listed in the systems Sudoers file to execute the ${libexecdir}/xfsm-shutdown-helper command as user root. This is /usr/sbin/xfsm-shutdown-helper on my Debian GNU/Linux (Etch) system so I became root, ran the visudo command and added the line as per the example:

dilettante poppy=/usr/sbin/xfsm-shutdown-helper

where dilettante is my username and poppy the hostname.

It didn’t work.

Reading the Sudoers Manual, I read about the NOPASSWD tag value, so I edited the line that I added previously to:

dilettante poppy = NOPASSWD: /usr/sbin/sfsm-shutdown-helper

And it worked!

However, my computer is not exactly a PC, i.e. a personal computer. H ‘sometimes’ gets to use it 🙂 I could add H as a user to the Sudoers file, but a more inclusive solution was to use what Cameron set up for the Computer Angels Sarge system which H kindly implemented for me.

So that all (two of us) users can shut down poppy, Sudoers now includes:

Cmnd_Alias XFCE_SHUTDOWN_COMMAND = /usr/sbin/xfsm-shutdown-helper

Albeit slower, I guess choosing ‘Shut Down’ from the ‘End Session’ dialog is a more elegant exit than poweroff in a root terminal.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s