Re: halt for users On 2004-06-23, Tallis <rork@piotrkow.net.pl> wrote:
> chud napisa?(a):
>> On Wed, 23 Jun 2004 08:14:44 +0200, Tallis wrote:
>>
>>
>>>Hallo
>>>
>>>What is the best and safest way to enable users to halt and reboot
>>>system.
>> man sudo, sudoers
> Yes I tried this but probably I've got problems with sudoers file
> syntax. I tried examples from man pages and still got problems. Can you
> show me a good example.
Define your user:
# User alias specification
User_Alias OWNER = piotr
and define his/her rights:
piotr ALL=NOPASSWD: /sbin/shutdown -h now,/sbin/reboot
and make an alias e.g. : halt=/sbin/ etc..
cheers
--
++++++++++++++++++++++++++++++++
Mike Slack 9.1
email: micr at zeelandnet dot nl
++++++++++++++++++++++++++++++++ |