Re: [mythtv-users] exit and shutdown from mythtv

2006-01-16 Thread Tim



ok, i'm dumb.  
the exit command in the general setup was simply 'halt'.  it obviously 
needs to be 'sudo halt' (or 'sudo /sbin/halt' if no alias is defined in sudoers 
file).  then i can reset my permissions to the way they should be on halt 
(chmod -s /sbin/halt).  is this the way to do it?  
thanks.
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] exit and shutdown from mythtv

2006-01-16 Thread Tim



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  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:
 

# /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 

 
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
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] exit and shutdown from mythtv

2006-01-16 Thread Robin Gilks

> the 'exit and shutdown' button used to work for me.  isn't now though.

Sounds like you need to define the full path to the shutdown command in
the setup box. By default, most systems put shutdown into /sbin and a
non-root user doesn't have /sbin in its path.

Try putting /sbin/shutdown (or /usr/sbin/shutdown if thats where your
distro stores it) into the dialog box.

-- 
Robin Gilks




___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[mythtv-users] exit and shutdown from mythtv

2006-01-16 Thread Tim



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:
 

# /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 

 
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
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users