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 5EB8A138CC5 for ; Sun, 22 Mar 2015 07:31:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 705FDE08E9; Sun, 22 Mar 2015 07:30:56 +0000 (UTC) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) (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 3403DE08DF for ; Sun, 22 Mar 2015 07:30:54 +0000 (UTC) Received: by labe2 with SMTP id e2so38154609lab.3 for ; Sun, 22 Mar 2015 00:30:53 -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=EmQcmcZpd+WMVmgCOiA2PRjJHhEXWHHB8xv+bOckxYA=; b=siTBY7r9oyxD7/YuNTd3hQ8q540iIhnEIaNMLFLwQsMiVAF4eC2Gndo8nY4DN4rxcg a8qEd7qPSNm7yL0JVcO2pTIwsicdZZf5tC1mc3+Ocu4EELG1IyirzZvEQhzMokJTCm6I G8eqjt5400hpd78s31Qm0vEKiOj1cDNpxQaUU2cWC0U3ZDVR6/I75T/Bno2ATbQ4xr1s yEC7dgtlUXLvWd4PZBNLGklux2JARhJx8tP4SS31lTldmOsA+umyiWdriUIM8ppPwXxC p50jpdlwBJCYXj1dmlapvqsbE26L00MtrFtFqwH8B3jGO/cw4LqrxIfPPsiIu74miIm7 UzKg== X-Received: by 10.112.163.229 with SMTP id yl5mr78436904lbb.60.1427009453554; Sun, 22 Mar 2015 00:30:53 -0700 (PDT) Received: from digger (95-55-6-114.dynamic.avangarddsl.ru. [95.55.6.114]) by mx.google.com with ESMTPSA id dz1sm1884143lbc.47.2015.03.22.00.30.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Mar 2015 00:30:52 -0700 (PDT) Date: Sun, 22 Mar 2015 03:30:49 -0400 From: German To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to poweroff the system from user? Message-Id: <20150322033049.aab2319694dadd92fb2bcff8@gmail.com> In-Reply-To: <6466269.mY7mxbMetF@navi> References: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> <20150322030659.ec90006302b19a7fe9775e1e@gmail.com> <6466269.mY7mxbMetF@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: 3e1056b1-a9b6-416e-882c-009ed5a79c4a X-Archives-Hash: 98757f0e9e715fe0c2e6387db66f6086 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). > > -- > Fernando Rodriguez > --