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 3C913138CC5 for ; Sun, 22 Mar 2015 07:41:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E4CE1E08F8; Sun, 22 Mar 2015 07:41:36 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B5632E08EB for ; Sun, 22 Mar 2015 07:41:35 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YZaVo-0002vK-AV for gentoo-user@lists.gentoo.org; Sun, 22 Mar 2015 08:41:32 +0100 Received: from athedsl-232940.home.otenet.gr ([85.74.229.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 22 Mar 2015 08:41:32 +0100 Received: from realnc by athedsl-232940.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 22 Mar 2015 08:41:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: How to poweroff the system from user? Date: Sun, 22 Mar 2015 09:41:14 +0200 Organization: Lucas Barks Message-ID: References: <20150321152656.a82a84b3e8a32c8b68554548@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-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-232940.home.otenet.gr User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: <20150321152656.a82a84b3e8a32c8b68554548@gmail.com> X-Archives-Salt: 1eda5614-e658-42fb-ac7e-fe0889994c4b X-Archives-Hash: 4f064f4fd0b3e177fe173d847aec958b On 21/03/15 21:26, German wrote: > If I run poweroff from root, the system shuts down, however when I run poweroff from user -- command not found. How to shut down the system from user? Thanks If you have dbus running (KDE, Gnome and others automatically use it), then you can shut down with something like: dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop You can make the above a script and save it in /usr/local/bin/dbus-halt (or whatever.) Some more scripts: https://bbs.archlinux.org/viewtopic.php?id=127962