so, i've worked on it a little more.  found a couple issues.
1) need to have /sbin/halt in the sudoers file:
"live  ALL=NOPASSWD:/sbin/shutdown, /sbin/halt, /sbin/reboot"
2) need to have /sbin in my user path.  did this by adding "PATH=$PATH:/sbin" to the .bashrc file in my mythtv user's directory. 
 
then the sudo xxxx commands worked.  unfortunately, that's not how mythtv must call for shutdown.  i get "halt: must be superuser".
 
so i typed "chmod +s /sbin/halt".  now it works.  i can exit from the menu button and my frontend will shutdown.  the sudo file stuff doesn't mean anything now, and all users can now halt the system.  is there a better way to do this?  thanks.
-----Original Message-----
the 'exit and shutdown' button used to work for me.  isn't now though.  i've noticed that the user i am logging in with does not have priveleges to run shutdown.  so, i editted the sudoers file.  didn't seem to change anything though.  here's my file, username live:
 
<start>
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification
Cmnd_Alias    SHUTDOWN = /sbin/shutdown

# User privilege specification
root    ALL=(ALL) ALL

live    ALL = NOPASSWD: SHUTDOWN
<end>
 
but, when i choose the 'exit and shutdown' button, i get a command not found.  specifically, 'sh: line 1: halt: command not found'.  any ideas? 
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to