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 6CB43138CC5 for ; Sun, 22 Mar 2015 07:47:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC419E096C; Sun, 22 Mar 2015 07:47:43 +0000 (UTC) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.230]) by pigeon.gentoo.org (Postfix) with ESMTP id 93CF5E08E9 for ; Sun, 22 Mar 2015 07:47:42 +0000 (UTC) Received: from [142.196.200.180] ([142.196.200.180:38097] helo=navi.localnet) by cdptpa-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 35/FF-00930-E937E055; Sun, 22 Mar 2015 07:47:42 +0000 From: Fernando Rodriguez To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to poweroff the system from user? Date: Sun, 22 Mar 2015 03:47:13 -0400 Message-ID: <10738617.3P4xkRqKDV@navi> User-Agent: KMail/4.14.3 (Linux/3.19.1; KDE/4.14.3; x86_64; ; ) In-Reply-To: <20150322033049.aab2319694dadd92fb2bcff8@gmail.com> References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <6466269.mY7mxbMetF@navi> <20150322033049.aab2319694dadd92fb2bcff8@gmail.com> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 X-Archives-Salt: 16a117e2-03ec-4f46-99f4-5613ad914f2e X-Archives-Hash: 3ecdbff49f55f66a47fd0271d944a1f7 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). Actually you never said anything about systemd so it's my bad. They where talking about logind and I got it messed up with another thread about systemd. -- Fernando Rodriguez