Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Aug 2019 11:30:27 +1000
From:      MJ <mafsys1234@gmail.com>
To:        Jim Trigg <jtrigg@huiekin.org>, Polytropon <freebsd@edvax.de>, hw <hw@gc-24.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: howto allow anyone to poweroff?
Message-ID:  <133b534b-192a-5f90-c215-6e81c0800577@gmail.com>
In-Reply-To: <2756FCF5-417A-471F-9562-BB957FD936A6@huiekin.org>
References:  <20190807183735.f4a87306c851426be6b799ca@gc-24.de> <20190807185445.62b59f2f.freebsd@edvax.de> <2756FCF5-417A-471F-9562-BB957FD936A6@huiekin.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?133b534b-192a-5f90-c215-6e81c0800577>