unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Daniel Pimentel <d4n1@openmailbox.org>
To: Alex Kost <alezost@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Xfce halt permission
Date: Fri, 22 May 2015 16:43:48 -0300	[thread overview]
Message-ID: <0e656dc3d03724009e5f256f2f379bb5@openmailbox.org> (raw)
In-Reply-To: <87d21txbnz.fsf@gmail.com>

On 2015-05-22 05:24, Alex Kost wrote:
> Daniel Pimentel (2015-05-22 03:13 +0300) wrote:
> 
>> 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?
> 
> As for me, I put the following into "/etc/sudoers" (but not directly –
> there is ‘sudoers’ field in ‘operating-system’ declaration):
> 
> --8<---------------cut here---------------start------------->8---
> Cmnd_Alias HALT = /run/current-system/profile/sbin/reboot, \
>                   /run/current-system/profile/sbin/halt
> <my-name> <my-host>=NOPASSWD: HALT
> --8<---------------cut here---------------end--------------->8---
> 
> Also I have the following shell aliases (in my ~/.bashrc):
> 
> --8<---------------cut here---------------start------------->8---
> alias reboot='sudo reboot'
> alias halt='sudo halt'
> --8<---------------cut here---------------end--------------->8---
> 
> After that I can use "halt" and "reboot" as a user (without promting 
> 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.
-- 
Daniel Pimentel (d4n1)
GnuPG (0B1A1914)
FSF (13054)

      reply	other threads:[~2015-05-22 19:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-22  0:13 Xfce halt permission Daniel Pimentel
2015-05-22  8:24 ` Alex Kost
2015-05-22 19:43   ` Daniel Pimentel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0e656dc3d03724009e5f256f2f379bb5@openmailbox.org \
    --to=d4n1@openmailbox.org \
    --cc=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).