Thread: halt for users
View Single Post

   
  #10 (permalink)  
Old 02-19-2008, 12:38 PM
standardblue
 
Posts: n/a
Default Re: halt for users

On Wed, 23 Jun 2004 15:01:15 +0000, Mike wrote:

>>> 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


I was always under the impression, from the man page, that the sudo
command required the user to input a password in order to 'sudo'
something. From the test "ALL=NOPASSWD", would I be right in thinking I
was wrong?

A quick slap and a point in the relevant and obvious section of the man
page I missed will do

sb
Reply With Quote