From owner-freebsd-questions Tue Sep 18 19:13: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-94-248-46.mmcable.com [24.94.248.46]) by hub.freebsd.org (Postfix) with SMTP id 7EBF737B40C for ; Tue, 18 Sep 2001 19:13:00 -0700 (PDT) Received: (qmail 27072 invoked by uid 100); 19 Sep 2001 02:12:59 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15271.65323.321240.389109@guru.mired.org> Date: Tue, 18 Sep 2001 21:12:59 -0500 To: "Todd Reed" Cc: questions@freebsd.org Subject: Re: Kicking off current users In-Reply-To: <64584402@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\ 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 Todd Reed types: > OK, I'm not sure if I've been asking the right questions or what, but here > goes for a final time! > > I use the "shutdown -k now" to disable logins. If anyone is currently > logged into the system, they do not get kicked out. How can I kick all of > them out to prepare for a backup without doing a shutdown? You can't do it with shutdown. It doesn't do anything to "kick users off", it just issues warnings and then takes the shutdown action requested by the flags. Shutting the system down is what really kicks the users off. Since -k doesn't shut it down, they don't get kicked off. What I would recommend in your situation is to just use shutdown, with no flags. That will take you to single user mode, from which you can do your backups safely. You can kick users off by hand with killall command. That will leave daemons running, which can screw your backups up as badly as active users. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message