Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 20th May 2012
sw2wolf sw2wolf is offline
λ programmer
Join Date: Mar 2012
Location: China
Posts: 133
Default Why do we need password to shutdown the box ?

>uname -a
FreeBSD mybsd.zsoft.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>cat /usr/local/etc/sudoers | grep NOPASSWD
%wheel ALL = NOPASSWD:/sbin/shutdown -p now,/sbin/shutdown -r now

uid=1001(sw2wolf) gid=1001(sw2wolf) groups=1001(sw2wolf),0(wheel),5(operator),920(vboxusers)
However, I still need to input the root's password to shutdown the box when running `sudo /sbin/shutdown -p now` or `sudo /sbin/shutdown -r now` .
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
shutdown message derf FreeBSD General 5 14th December 2010 04:57 PM
openbsd shutdown phill OpenBSD General 3 27th October 2009 12:27 PM
shutdown message Mr-Biscuit FreeBSD General 1 16th November 2008 11:59 PM
enable shutdown/reboot xfce4 rex FreeBSD General 16 17th October 2008 02:19 PM
Shutdown problems radtek FreeBSD General 11 13th September 2008 12:42 AM

All times are GMT. The time now is 02:21 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick