* Xfce halt permission
@ 2015-05-22 0:13 Daniel Pimentel
2015-05-22 8:24 ` Alex Kost
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Pimentel @ 2015-05-22 0:13 UTC (permalink / raw)
To: guix-devel
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?
Thanks for help
--
Daniel Pimentel (d4n1)
GnuPG (0B1A1914)
FSF (13054)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Xfce halt permission
2015-05-22 0:13 Xfce halt permission Daniel Pimentel
@ 2015-05-22 8:24 ` Alex Kost
2015-05-22 19:43 ` Daniel Pimentel
0 siblings, 1 reply; 3+ messages in thread
From: Alex Kost @ 2015-05-22 8:24 UTC (permalink / raw)
To: Daniel Pimentel; +Cc: guix-devel
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.
--
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Xfce halt permission
2015-05-22 8:24 ` Alex Kost
@ 2015-05-22 19:43 ` Daniel Pimentel
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Pimentel @ 2015-05-22 19:43 UTC (permalink / raw)
To: Alex Kost; +Cc: guix-devel
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-22 19:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-22 0:13 Xfce halt permission Daniel Pimentel
2015-05-22 8:24 ` Alex Kost
2015-05-22 19:43 ` Daniel Pimentel
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).