>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 Thu Dec 01 2016 - 18:15:48 UTC