Re: How to trap ctrl-alt-del?
Thank you. How could I forget simple permissions? Now I am using it
that way.
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
>
Received on Mon Dec 05 2016 - 17:09:26 UTC
This archive was generated by hypermail 2.3.0
: Sun May 09 2021 - 19:44:19 UTC