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.54) id 1FRIEO-00023k-8U for garchives@archives.gentoo.org; Thu, 06 Apr 2006 00:20:12 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k360HXlK029061; Thu, 6 Apr 2006 00:17:33 GMT Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.191]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k3606oUs002045 for ; Thu, 6 Apr 2006 00:06:50 GMT Received: by nproxy.gmail.com with SMTP id b2so12436nfe for ; Wed, 05 Apr 2006 17:06:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N8gViT3Za5V1MlV5sgfUKi/rwrZitu2evTOQK5ZuHTVXpkQq0B/xCQtBnPfMMYhLcrHNLQoXjo4V7O09Z16yRY0E3W82g2ifQcsL8RFtnYDFsEVSqnvNUVCZbIpcjsF1b8ZJEX5GMxoibHzXbBBHJw1NNE1HhbnlUMZEyqzIOSI= Received: by 10.48.218.7 with SMTP id q7mr144878nfg; Wed, 05 Apr 2006 17:06:50 -0700 (PDT) Received: by 10.49.87.11 with HTTP; Wed, 5 Apr 2006 17:06:50 -0700 (PDT) Message-ID: <49bf44f10604051706v4bfa7fe6qc3c0c03d6ec4569@mail.gmail.com> Date: Wed, 5 Apr 2006 17:06:50 -0700 From: Grant To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] sudo difficulties In-Reply-To: <44899.127.0.0.1.1144281033.squirrel@localhost> 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <49bf44f10604051645t673f8d84v2d97535b17a3d4b7@mail.gmail.com> <44899.127.0.0.1.1144281033.squirrel@localhost> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k3606oUs002045 X-Archives-Salt: bbcb18ee-945b-4ebe-bfea-41b28429b118 X-Archives-Hash: 4daa270a89ab56bfcabd73360ac0b083 > > I've added the following to the bottom of my sudo file using 'visudo' > > and there are no complaints of bad syntax, but grant still can't shut down the system: > > > > grant system4 = /sbin/shutdown -h now > > > > What am I missing? > > > > > > - Grant > > First try to edit one of the examples and see if that works. For example try this one: > > %users localhost=/sbin/shutdown -h now > > Replace %users with the group for grant. > > Jim I actually tried that first and when that failed I tried something like that specified here: www.gentoo.org/doc/en/sudo-guide.xml Either way I get: grant@system4 ~ $ /sbin/shutdown -h now shutdown: you must be root to do that! - Grant -- gentoo-user@gentoo.org mailing list