From owner-freebsd-questions Wed Nov 11 08:19:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA03089 for freebsd-questions-outgoing; Wed, 11 Nov 1998 08:19:56 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from laker.net (jet.laker.net [205.245.74.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA03076 for ; Wed, 11 Nov 1998 08:19:46 -0800 (PST) (envelope-from sfriedri@laker.net) Received: from nt (digital-pbi-158.laker.net [208.0.233.58]) by laker.net (8.9.0/8.9.LAKERNET.NO-SPAM.SPAMMERS.AND.RELAYS.WILL.BE.TRACKED.AND.PROSECUTED.) with SMTP id KAA00868; Wed, 11 Nov 1998 10:21:28 -0500 Message-Id: <199811111521.KAA00868@laker.net> From: "Steve Friedrich" To: "FreeBSD Questions" , "Tolpin Vladimir" Date: Wed, 11 Nov 1998 10:54:15 -0500 Reply-To: "Steve Friedrich" X-Mailer: PMMail 98 Professional (2.01.1600) For Windows NT (4.0.1381;3) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: Shutdown Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 11 Nov 1998 18:38:48 +0300, Tolpin Vladimir wrote: >Thank you very much Steve. First solution of shutdown problem ( user >shell -> /sbin/halt ) >was what I just need. Thank`s for your help. I really think the second solution is better for a couple reasons. 1. A UserID like shutdown won't tell you who really invoked shutdown 2. Solution 1 has a possible security hole via Control-C Solution 2 will result in a entry in the shutdown log with the real UserID and there is no security hole, AFAIK. Solution 2 also allows the user to specify shutdown at a specified time or fifteen minutes from now. Man page has more info. Solution 1 shuts down right now. If you used /sbin/shutdown with Solution 1, you could hardcode a time, such as +15 in the passwd file, but that's not as flexible as doing it from the command line. Unix systems measure "uptime" in years, Winblows measures it in minutes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message