public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Iain Buchanan <iaindb@netspace.net.au>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] non-sudo way for user to run shutdown -h now? (or any equivalent)
Date: Thu, 21 Jul 2005 11:19:14 +0930	[thread overview]
Message-ID: <1121910554.22205.13.camel@orpheus> (raw)
In-Reply-To: <5bdc1c8b0507201106217db34a@mail.gmail.com>

On Wed, 2005-07-20 at 11:06 -0700, Mark Knecht wrote:
> On 7/20/05, Richard Fish <bigfish@asmallpond.org> wrote:
> > Mark Knecht wrote:
> > 
> > >Hi,
> > >   I'm trying to get my mythfrontend box to allow a user to shut the
> > >machine down without the use of a keyboard. We are only using remote
> > >controls. suso doesn't seem to be an option because it requires a
> > >password. (AFAICT)
> > >
> > >   Is there some other way that I could make this work?
> > 
> > 2 options:
> > 
> > 1. Sudo can be setup to allow some commands to be run without a
> > password.  I think this entry in /etc/sudoers should work:
> > 
> > mythtv ALL = NOPASSWD: /sbin/shutdown
> 
> Yes, I have this working. My problem with this solution was slightly
> deeper. To get MythTV to execute this command I have to put 'sudo
> shutdown -h now' in a setup screen within the setup portion of
> mythfrontend. In a general sense I don't know how to do that without a
> keyboard being attached to the machine. So far I haven't found where
> MythTV stores this information so that I could edit it from an ssh
> login.

even so, I think this is your best path to follow.  Surely you can find
out where mythfrontend stores these files.  I don't have mythtv
installed, but I would try, in order, the mythtv website / google; and
then "grep -ri" (brute force approach!) starting from /etc.

HTH,
-- 
Iain Buchanan <iaindb@netspace.net.au>

-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2005-07-21  1:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-20 17:29 [gentoo-user] non-sudo way for user to run shutdown -h now? (or any equivalent) Mark Knecht
2005-07-20 17:47 ` Richard Fish
2005-07-20 18:06   ` Mark Knecht
2005-07-20 19:16     ` Wade Brown
2005-07-20 21:15       ` Richard Fish
2005-07-20 21:17     ` Richard Fish
2005-07-21  1:49     ` Iain Buchanan [this message]
2005-07-20 20:05 ` Rafer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1121910554.22205.13.camel@orpheus \
    --to=iaindb@netspace.net.au \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox