1 |
On Wed, 2005-07-20 at 11:06 -0700, Mark Knecht wrote: |
2 |
> On 7/20/05, Richard Fish <bigfish@××××××××××.org> wrote: |
3 |
> > Mark Knecht wrote: |
4 |
> > |
5 |
> > >Hi, |
6 |
> > > I'm trying to get my mythfrontend box to allow a user to shut the |
7 |
> > >machine down without the use of a keyboard. We are only using remote |
8 |
> > >controls. suso doesn't seem to be an option because it requires a |
9 |
> > >password. (AFAICT) |
10 |
> > > |
11 |
> > > Is there some other way that I could make this work? |
12 |
> > |
13 |
> > 2 options: |
14 |
> > |
15 |
> > 1. Sudo can be setup to allow some commands to be run without a |
16 |
> > password. I think this entry in /etc/sudoers should work: |
17 |
> > |
18 |
> > mythtv ALL = NOPASSWD: /sbin/shutdown |
19 |
> |
20 |
> Yes, I have this working. My problem with this solution was slightly |
21 |
> deeper. To get MythTV to execute this command I have to put 'sudo |
22 |
> shutdown -h now' in a setup screen within the setup portion of |
23 |
> mythfrontend. In a general sense I don't know how to do that without a |
24 |
> keyboard being attached to the machine. So far I haven't found where |
25 |
> MythTV stores this information so that I could edit it from an ssh |
26 |
> login. |
27 |
|
28 |
even so, I think this is your best path to follow. Surely you can find |
29 |
out where mythfrontend stores these files. I don't have mythtv |
30 |
installed, but I would try, in order, the mythtv website / google; and |
31 |
then "grep -ri" (brute force approach!) starting from /etc. |
32 |
|
33 |
HTH, |
34 |
-- |
35 |
Iain Buchanan <iaindb@××××××××××××.au> |
36 |
|
37 |
-- |
38 |
gentoo-user@g.o mailing list |