howto allow anyone to poweroff?

Jim Trigg jtrigg at huiekin.org
Wed Aug 7 19:09:49 UTC 2019


Way three is to chmod u+s,a+x /sbin/poweroff (or is it /usr/sbin/poweroff?).

Thanks,
Jim Trigg


On August 7, 2019 12:54:45 PM EDT, Polytropon <freebsd at edvax.de> wrote:
>On Wed, 7 Aug 2019 18:37:35 +0200, hw wrote:
>> Hi,
>> 
>> is there a way to allow ordinary users to poweroff a machine?  I'd
>> like to automatically poweroff PXE booted clients once the user that
>> was logged in logs out after using it.
>
>There are basically two ways:
>
>Way 1 is to add the users to the group "operator". This, however,
>allows them to do other things too which you might not be interested
>in allowing them.
>
>Way 2 is to add a program like sudo or super to your installation
>and allow the users to use _one_ specific program ("poweroff only").
>This is probably the safer way.
>
>
>
>-- 
>Polytropon
>Magdeburg, Germany
>Happy FreeBSD user since 4.0
>Andra moi ennepe, Mousa, ...
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>https://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to
>"freebsd-questions-unsubscribe at freebsd.org"

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


More information about the freebsd-questions mailing list