Disable "shutdown" and "restart" in logout dialog ?

Mathias Brodala info at noctus.net
Wed May 16 15:56:13 CEST 2007


Hi Miro.

hodak at chips.ncsu.edu, 16.05.2007 08:19:
> is it possible to disable "Shutdown" and "Restart" options in logout 
> dialog so that "Logout" is the only option? Several times I mistakenly 
> clicked the wrong button and my machine got restarted (or shut down) even 
> though I just wanted to logout from XFC.

For this you could remove the line with your username from /etc/sudoers (edit
with "visudo").

> Or, having conformation dialog, conforming whether logout or shutdown is 
> indeed intended may also be helpful.

You can enable the password-prompt by just removing "NOPASSWD:" in the file
mentioned above.


Regards, Mathias

-- 
debian/rules

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20070516/718b4c30/attachment.pgp>


More information about the Xfce mailing list