Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Nov 1998 10:54:15 -0500
From:      "Steve Friedrich" <SteveFriedrich@Hot-Shot.com>
To:        "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>, "Tolpin Vladimir" <tolpin@chat.ru>
Subject:   Re: Shutdown
Message-ID:  <199811111521.KAA00868@laker.net>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811111521.KAA00868>