Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Sep 2001 10:25:32 -0500
From:      Mike Meyer <mwm@mired.org>
To:        "Todd Reed" <ex279@hotmail.com>
Cc:        questions@freebsd.org
Subject:   Re: Kill all Users and prevent logins
Message-ID:  <15255.38252.586000.906032@guru.mired.org>
In-Reply-To: <79713265@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
Todd Reed <ex279@hotmail.com> types:
> Is there a good way to kill everyone who is currently logged onto the system 
> and the allow no one to log on while the system is backing up?  Once the 
> backup is completed, the system will be rebooted.

If you're going to reboot it anyway, shutdown is the command you want
to use. It will set things up so anyone but root trying to log in will
get a warning and not be allowedon, issue warnings to the users
currently logged in to give them time to save their work before
logging them off, then goes to single user mode. After you do the
backups, you can either use reboot - if that's what you want to do -
or exit the single-user shell to restart multi-user mode without
rebooting.

	<mike
--
Mike Meyer <mwm@mired.org>			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




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