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 D57A4138CC5 for ; Sun, 22 Mar 2015 07:55:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D9E15E0962; Sun, 22 Mar 2015 07:55:38 +0000 (UTC) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 70731E0913 for ; Sun, 22 Mar 2015 07:55:37 +0000 (UTC) Received: by labe2 with SMTP id e2so38328530lab.3 for ; Sun, 22 Mar 2015 00:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=k3hKg7pH1x3xLMcalKnTxEyQN7Ixr889q77I4igJNFA=; b=hdN7C65+R2/luADQeXsn14wg1qVO9/qpnyz0IG+JT3nRPAoZ6V8Y9QP+DJamAedkg+ fD33pW2OJHqghWGPv/H470BSAVxDmUqfQnZCihJWXnteRDN6rJy7Ro0TvyDgBL1N9Zij 7guEMKoWHzHmHypJUSAHMGEjw/14vUzikgakj+Rs8Nkn1Y4qUoj9tW+tQ3SOmvCzfB6r yJyPqKC3DgoGAvB6oNoGkznQVVS66CoA7oAf7jPiu4Uhfr6jGJBg0voYrSQlMszymqRB +Uw7iTwsLnxAW9zBRwdjzG2GgOrOgJweLq3GQ/RloZcuJIlpQUhKWQLzVvVXILQJ366+ JRhg== X-Received: by 10.112.145.230 with SMTP id sx6mr51478240lbb.70.1427010935868; Sun, 22 Mar 2015 00:55:35 -0700 (PDT) Received: from digger (95-55-6-114.dynamic.avangarddsl.ru. [95.55.6.114]) by mx.google.com with ESMTPSA id dz1sm1893176lbc.47.2015.03.22.00.55.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Mar 2015 00:55:35 -0700 (PDT) Date: Sun, 22 Mar 2015 03:55:32 -0400 From: German To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to poweroff the system from user? Message-Id: <20150322035532.246d9c81679e2eaadad47a7b@gmail.com> In-Reply-To: <5105679.TWFWNhoDVI@navi> References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <6466269.mY7mxbMetF@navi> <20150322033049.aab2319694dadd92fb2bcff8@gmail.com> <5105679.TWFWNhoDVI@navi> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; x86_64-pc-linux-gnu) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: bc571a73-2d98-4a99-a6c4-24e1ccb3b7bf X-Archives-Hash: 9bfed8f0b393c0f64c033e6b77c11615 On Sun, 22 Mar 2015 03:35:49 -0400 Fernando Rodriguez wrote: > On Sunday, March 22, 2015 3:30:49 AM German wrote: > > On Sun, 22 Mar 2015 03:19:50 -0400 > > Fernando Rodriguez wrote: > > > > > On Sunday, March 22, 2015 3:06:59 AM German wrote: > > > > On Sun, 22 Mar 2015 08:49:54 +0200 > > > > Matti Nykyri wrote: > > > > > > > > > > On Mar 22, 2015, at 8:32, German wrote: > > > > > > > > > > > > > > > > > > /sbin/poweroff says "Must be a superuser" :( > > > > > > > > > > Did you read any of the previous messages? They told you that you have > to > > > have consolekit and polkit installed and configured for this to work! > > > > > > > > Yes, I've read them. However no one explianed how this has to be > > > accomplished with polkit and consolekit. > > > > > > You don't need those. It sounds like you somehow got both sysvinit and > systemd > > > installed. The message you're getting is from sysvinit. poweroff should be > a > > > symlink to systemctl. Try: > > > > > > systemctl poweroff > > > > > > You may need to unmerge sysvinit and anything else related to openrc and > then > > > re-emerge systemd. With systemd it should either shutdown or ask you for > the > > > root password (if you're not logged in locally or there's other users > logged > > > > Thanks, I decide to go with sudo on this one. However when I try to run it, > it says: > > "Username is not in the sudoers file." Where is this file located and how can > I add the user to it? Thanks > > > > > in). > > > > > > > > > > > See man sudo. It is huge and my head is spinning. A simple search on the web showed that I had just to add one line to "sudoers" file. Now I am able to poweroff with sudo. But the advice you're getting is for openrc (it will work until > something else breaks), you need to remove all openrc components and install > systemd properly. Why is openRC is installed at all if I need to remove it? > -- > Fernando Rodriguez > --