From owner-freebsd-questions Tue Dec 11 9:57: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-201-166.mmcable.com [65.31.201.166]) by hub.freebsd.org (Postfix) with SMTP id AF04D37B417 for ; Tue, 11 Dec 2001 09:56:56 -0800 (PST) Received: (qmail 27181 invoked by uid 100); 11 Dec 2001 17:56:55 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15382.18663.426530.954823@guru.mired.org> Date: Tue, 11 Dec 2001 11:56:55 -0600 To: "Eugene Panchenko" Cc: questions@freebsd.org Subject: Re: Strange programs' permissions In-Reply-To: <120278244@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA v0.42/Python 2.1.1 (freebsd4) From: "Mike Meyer" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Eugene Panchenko types: > Hallo! > To be able to issue `shutdown' command, I need to be in > operator group, since > > -r-sr-x--- 1 root operator 192256 Dec 6 19:34 > /sbin/shutdown > > OK. But why reboot, halt (and other hardlinks) have this > permissions, when both shutdown and reboot do essentially > the same thing: ? > > -r-xr-xr-x 4 root wheel 256332 Dec 6 19:34 /sbin/reboot shutdown normally warns all the users that things are going to get shut down. halt, reboot, etc. don't do that, so you only want knowledgeable people - i.e., root - to use them. The point is probably moot on most FreeBSD systems these days, but not all, and there's no pressing reason to change it. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message