View Single Post
  #2   (View Single Post)  
Old 16th October 2008
bigb89 bigb89 is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 69
Default

I was reading the documentation and one of the ways that I "think" (please read the docs and make sure that I'm correct) you can enable shutdown, is that you edit your sudoers file (if you have sudo installed).

xfce has a file called "xfsm-shutdown-helper". In FreeBSD, this file should be located under: /usr/local/libexec/xfsm-shutdown-helper

You then edit the sudoers file and add the following to it (replace myuser and myhost with your user and host):

Code:
myuser myhost=/usr/local/libexec/xfsm-shutdown-helper
Now, I believe that above way, will prompt the user for a password everytime that the user wants to shutdown. So if you don't want to be prompted for a password everytime that you try to shutdown, you can add the following to your sudoers file instead:

Code:
myuser ALL = NOPASSWD: /usr/local/libexec/xfsm-shutdown-helper
That will allow your user to execute the command /usr/local/libexec/xfsm-shutdown-helper without being prompted for a password (if you choose the second option).
Reply With Quote