From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 437F61381F3 for ; Fri, 7 Jun 2013 17:13:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 039EFE09B9; Fri, 7 Jun 2013 17:12:58 +0000 (UTC) Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D6D28E098A for ; Fri, 7 Jun 2013 17:12:56 +0000 (UTC) Received: by mail-ie0-f177.google.com with SMTP id u16so11186676iet.22 for ; Fri, 07 Jun 2013 10:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=zZwvyKYlvt/oQtEfU2BQDBsmeYcn2mU1WO2UGM68oJ0=; b=By/QcblWCHBqDeG3KR9J9h6zM9M3OA/K+GarsqdASrSbuX2BXeRlWjh59JPhdjETn6 2Q1yvWW4EijgTlzvZNDvprtKVNeA5q1ez1URG/t1sB9JTDyf/vCVf4m53rM9tOjX+OjY XxPqI6EJ/l2K8Hb7XKyTPartnvM0Qst3+qmvKpJbzG3cXmVL66/d0FOQEZrp5d9y78jo Nd7AMPXUJvMpMYtMJiuXbTePITsm8/3LArqgBjYjtHa3w9PLS2ewfqKRiFJxZcizhPrE BJ4mzGyWmDxztm6QPYwZunkHTJORk2v9gjz7pPMVs+raOVe8JREBncqd/oA1gSUqLzfE GHLQ== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.50.82.102 with SMTP id h6mr1891118igy.23.1370625176017; Fri, 07 Jun 2013 10:12:56 -0700 (PDT) Received: by 10.42.42.66 with HTTP; Fri, 7 Jun 2013 10:12:55 -0700 (PDT) In-Reply-To: <201306070649.41975.michaelkintzios@gmail.com> References: <20130606122134.1d675816d0a5796e3666cb56@gmail.com> <20130606182253.8e5cd2bd48a6bf9f6c732185@gmail.com> <201306070649.41975.michaelkintzios@gmail.com> Date: Fri, 7 Jun 2013 10:12:55 -0700 Message-ID: Subject: Re: [gentoo-user] Fbpanel - Fluxbox - Gkrellm Questions From: Fast Turtle To: Gentoo User List Content-Type: multipart/alternative; boundary=047d7bf183d8bca31704de938a91 X-Archives-Salt: d5263ad8-9168-4013-94d5-c3cc7ecbc661 X-Archives-Hash: 68f64ccd02a2320cbfe83009baf56588 --047d7bf183d8bca31704de938a91 Content-Type: text/plain; charset=UTF-8 Took me a while to figure out what sudo was complaining about - my shutdown line includes a 15 second delay /sbin/shutdown -h 15 needed to be t=15. Once I solved that, it quit complaining. I'd though to simply take advantage of the already available line for the wheel group being allowed to execute any command w/o a pw but thought thrice about it and went the individual command route. Will be testing quite soon now that I've got the sleep command working. On Thu, Jun 6, 2013 at 10:49 PM, Mick wrote: > On Friday 07 Jun 2013 06:21:00 Fast Turtle wrote: > > Turns out there's no shutdown group on my system now so it must be added > > when kde is installed with powerdevil - oh well. Guess I'll have to > either > > create it or go the sudo route since I'm more concerned with what works. > > These are my relevant entries in /etc/sudoers to avoid entering a passwd: > > ME BOX1 = NOPASSWD: /sbin/shutdown -h now > ME BOX1 = NOPASSWD: /sbin/shutdown -r now > ME BOX1 = NOPASSWD: /usr/sbin/hibernate > > after I have defined as: > > Host_Alias BOX1 = <--could also use IP address here <-- > User_Alias ME = > > > PS. Don't forget to use visudo to edit your sudoers file. > -- > Regards, > Mick > --047d7bf183d8bca31704de938a91 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Took me a while to figure out what sudo was= complaining about - my shutdown line includes a 15 second delay=C2=A0 /sbi= n/shutdown -h 15 needed to be t=3D15. Once I solved that, it quit complaini= ng.

I'd though to simply take advantage of the alread= y available line for the wheel group being allowed to execute any command w= /o a pw but thought thrice about it and went the individual command route. = Will be testing quite soon now that I've got the sleep command working.=


On Thu,= Jun 6, 2013 at 10:49 PM, Mick <michaelkintzios@gmail.com><= /span> wrote:
On Friday 07 Jun 2013 06:2= 1:00 Fast Turtle wrote:
> Turns out there's no shutdown group on my system now so it must be= added
> when kde is installed with powerdevil - oh well. Guess I'll have t= o either
> create it or go the sudo route since I'm more concerned with what = works.

These are my relevant entries in /etc/sudoers to avoid entering a pas= swd:

ME =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0BOX1 =3D NOPASSWD: /sbin= /shutdown -h now
ME =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0BOX1 =3D NOPASSWD: /sbin= /shutdown -r now
ME =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0BOX1 =3D NOPASSWD: /usr/= sbin/hibernate

after I have defined as:

Host_Alias =C2=A0 =C2=A0 =C2=A0BOX1 =3D <domain_name> =C2=A0<--cou= ld also use IP address here <--
User_Alias =C2=A0 =C2=A0 =C2=A0ME =3D <my_username>


PS. Don't forget to use visudo to edit your sudoers file.
--
Regards,
Mick

--047d7bf183d8bca31704de938a91--