howto allow anyone to poweroff?

MJ mafsys1234 at gmail.com
Thu Aug 8 01:31:00 UTC 2019


But would/could this get clobbered in an upgrade?

On 8/08/2019 5:09 am, Jim Trigg wrote:
> 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"
> 


More information about the freebsd-questions mailing list