Shutdown is too easy
yoda_81fr at yahoo.fr
Wed Jul 20 19:01:54 CEST 2005
Thanks a lot, it's works now!!!
De : David A. De Graaf
Envoyé : 20.07.2005 17:38
>On Wed, Jul 20, 2005 at 10:08:58AM +0200, Jean-Fran?ois Wauthy wrote:
>>Le mardi 19 juillet 2005 à 23:33 -0400, David A. De Graaf a écrit :
>>>The 'exit' popup window offers three choices:
>>> - Quit current session
>>> - Reboot the computer
>>> - Turn off the computer
>>>The convenience of single clicking to shut down the computer is vastly
>>>exceeded by the danger. I would like to delete or disable this
>>>third option. Such an irreversible action should take more effort.
>>>In preparation for a trip, I was experimenting with running a VNC
>>>connection from a laptop over an SSH tunnel to my main home computer.
>>>(XFCE works great in this configuration!) However, I accidentally clicked
>>>"Turn off the computer". Luckily I was sitting at home and could push
>>>the power button to turn it back on, but the thought of doing this while
>>>away from home is too scary to think about.
>>>Is there a way to remove this dangerous option?
>>IIRC the only way to stop the system whithout any further confirmation
>>is by setting sudo to not ask password for the current user for at
>>least /sbin/halt, /sbin/reboot/ and /sbin/shutdown
>>so i'd say configure sudo to ask you a password when you try to shutdown
>You have diagnosed my problem perfectly. Thank you, Jean-François
>I had configured sudo to let me do everything (pretty dumb, I know):
> dad ALL=(ALL) NOPASSWD: ALL
>This includes whatever command is used by the shutdown cartoon.
>However an attempt to exclude shutdown failed to restrict it:
> dad datium=PASSWD: /sbin/shutdown, NOPASSWD: ALL
>I either misunderstand the man page for 'sudoers' (which is the
>epitome of incomprehensibility), or the shutdown icon mysteriously
>uses some command other than /sbin/shutdown. (Sometimes I really hate
>In any case, I've removed all interventions with sudo and now XFCE
>shuts down as it should - by requiring a password.
Visitez mon site: yoda81fr.homelinux.org
J'attends vos commentaires sur le livre d'or
GPG key: 0xA3A37CC8
"Looking? Found someone you have yes? Uhrmm?" (Yoda)
More information about the Xfce