From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Pimentel Subject: Re: Xfce halt permission Date: Fri, 22 May 2015 16:43:48 -0300 Message-ID: <0e656dc3d03724009e5f256f2f379bb5@openmailbox.org> References: <780be75fba82b779f3323d987b5018ea@openmailbox.org> <87d21txbnz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvsrK-0001Kk-Lr for guix-devel@gnu.org; Fri, 22 May 2015 15:43:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvsrH-0001hA-CD for guix-devel@gnu.org; Fri, 22 May 2015 15:43:54 -0400 Received: from smtp24.openmailbox.org ([62.4.1.58]:51691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvsrH-0001h6-3J for guix-devel@gnu.org; Fri, 22 May 2015 15:43:51 -0400 In-Reply-To: <87d21txbnz.fsf@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org On 2015-05-22 05:24, Alex Kost wrote: > Daniel Pimentel (2015-05-22 03:13 +0300) wrote: >=20 >> Hi Guix, I'd like to add halt permission to normal user in XFCE >> session. The halt binary is in system profile: >> /run/current-system/profile/sbin/halt >> How to add halt binary to my normal user? >=20 > As for me, I put the following into "/etc/sudoers" (but not directly =E2= =80=93 > there is =E2=80=98sudoers=E2=80=99 field in =E2=80=98operating-system=E2= =80=99 declaration): >=20 > --8<---------------cut here---------------start------------->8--- > Cmnd_Alias HALT =3D /run/current-system/profile/sbin/reboot, \ > /run/current-system/profile/sbin/halt > =3DNOPASSWD: HALT > --8<---------------cut here---------------end--------------->8--- >=20 > Also I have the following shell aliases (in my ~/.bashrc): >=20 > --8<---------------cut here---------------start------------->8--- > alias reboot=3D'sudo reboot' > alias halt=3D'sudo halt' > --8<---------------cut here---------------end--------------->8--- >=20 > After that I can use "halt" and "reboot" as a user (without promting=20 > for > a password). I hope it helps. It's work. I used it, but I would like to add halt and reboot permission to XFCE. Thanks. --=20 Daniel Pimentel (d4n1) GnuPG (0B1A1914) FSF (13054)