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 40C58138CC5 for ; Sun, 22 Mar 2015 07:58:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7101EE096A; Sun, 22 Mar 2015 07:58:02 +0000 (UTC) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) (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 0C411E08DF for ; Sun, 22 Mar 2015 07:58:01 +0000 (UTC) Received: by labon10 with SMTP id on10so13160105lab.2 for ; Sun, 22 Mar 2015 00:57:59 -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=4t357VSMK1n6Rz1YzeGSb3w2klplMPK7BGEFyvYP5A8=; b=BFlRDSlaL+TbvwbmZAxsB9xA4zuiGDd0EYOYReKpN5xCbtSfreE4m+N81djB0iOqQD HNbWYwskjl3uxeElP6k4S37RagRuPguvTvF86EjpVL9du+FmiamXMTFByRxqqkDwyhQu OBDjK8Cy6yAFTMYFaRjmHiTMf8+KtWwsfKlSatdktQbMQVz1bsoCgmc1w7xyT+fkGUG8 8mbnSM4aO8jfPHtS99gyCTKPRH3WhyivzT4MyjKeWnaLOMTWcoKI0AWreEXxwaFEuT5r c+UAntyMjdPrsXCuZEZ/CribM6ncDrHgOX20mq8HPnGwTQ6SSJDGhEqr8K6x2CMNgtME XXmw== X-Received: by 10.152.27.39 with SMTP id q7mr77062633lag.49.1427011079707; Sun, 22 Mar 2015 00:57:59 -0700 (PDT) Received: from digger (95-55-6-114.dynamic.avangarddsl.ru. [95.55.6.114]) by mx.google.com with ESMTPSA id gz5sm1896335lac.26.2015.03.22.00.57.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Mar 2015 00:57:59 -0700 (PDT) Date: Sun, 22 Mar 2015 03:57:55 -0400 From: German To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to poweroff the system from user? Message-Id: <20150322035755.31aeef109dc99baa78cf06b3@gmail.com> In-Reply-To: <10738617.3P4xkRqKDV@navi> References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <6466269.mY7mxbMetF@navi> <20150322033049.aab2319694dadd92fb2bcff8@gmail.com> <10738617.3P4xkRqKDV@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: 345655d0-bcc4-49f1-bae5-adc88d92afdb X-Archives-Hash: 27c592003f145d8babed5c16243156dc On Sun, 22 Mar 2015 03:47:13 -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). > > 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. > No problem. I guess that's what happening when you try to help everyone. > -- > Fernando Rodriguez > --