From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DvQDn-0006VQ-RE for garchives@archives.gentoo.org; Thu, 21 Jul 2005 01:51:36 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6L1oWBj015460; Thu, 21 Jul 2005 01:50:32 GMT Received: from mail.netspace.net.au (thunder.netspace.net.au [203.10.110.71]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6L1l2Gm031420 for ; Thu, 21 Jul 2005 01:47:03 GMT Received: from orpheus (unknown [150.101.6.82]) by mail.netspace.net.au (Postfix) with ESMTP id A725549482 for ; Thu, 21 Jul 2005 11:47:11 +1000 (EST) Subject: Re: [gentoo-user] non-sudo way for user to run shutdown -h now? (or any equivalent) From: Iain Buchanan To: gentoo-user@lists.gentoo.org In-Reply-To: <5bdc1c8b0507201106217db34a@mail.gmail.com> References: <5bdc1c8b05072010296257e670@mail.gmail.com> <42DE8E28.1020304@asmallpond.org> <5bdc1c8b0507201106217db34a@mail.gmail.com> Content-Type: text/plain Date: Thu, 21 Jul 2005 11:19:14 +0930 Message-Id: <1121910554.22205.13.camel@orpheus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: b0c6abc0-d407-4a62-b557-1893ede8cb27 X-Archives-Hash: 4f6a47e1569f6b2f9f25848b10ac54fa On Wed, 2005-07-20 at 11:06 -0700, Mark Knecht wrote: > On 7/20/05, Richard Fish 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 -- gentoo-user@gentoo.org mailing list