Re: How to trap ctrl-alt-del?

From: Jean Louis <bugs_at_gnu.support>
Date: Thu, 1 Dec 2016 21:15:37 +0300

On Thu, Dec 01, 2016 at 06:15:48PM +0000, Laurent Bercot wrote:
> > The s6-poweroff is for root user, and I have users who wish to
> > poweroff, and I don't want to give them sudo rights to power off the
> > computer. That is why I am searching for simple solution.
>
> Create a "poweroff" group.
> Add all the users you want to that group.
> chown root:poweroff /bin/s6-poweroff
> chmod 4750 /bin/s6-poweroff
>
> Now, all users in the group "poweroff" have the right to call
> s6-poweroff. They don't have any other privileges.
>
> --
> Laurent

Thank you much.

Jean
Received on Thu Dec 01 2016 - 18:15:37 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC