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

Reply via email to