This one time, at band camp, garrone said:
> I am trying to get mythtv to do its automatic shutdown/wakeup for
> recording of favorite television program.
> 
> In the debian multimedia package, it's backend daemon is set to run with
> user (called mythtv) privileges. Debian shutdown refuses to shutdown if
> the user is not the superuser.
> 
> Is there anyway to allow the mythtv backend to bring the system down
> without giving it root privilege? It can be set up to run anything to
> shutdown.

/etc/sudoers:
mythtv   ALL=(ALL) NOPASSWD:/sbin/shutdown

and then write a wrapper script that calls 'sudo shutdown -h now' (or
just use that as the shutdown command).
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to