From owner-freebsd-questions@FreeBSD.ORG Tue May 5 08:45:19 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F7DC106564A for ; Tue, 5 May 2009 08:45:19 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from relay.ptn-ipout01.plus.net (relay.ptn-ipout01.plus.net [212.159.7.35]) by mx1.freebsd.org (Postfix) with ESMTP id 36FEA8FC0C for ; Tue, 5 May 2009 08:45:18 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAOOZ/0nUnw4T/2dsb2JhbAC/ZwGPK4JMAYEwBQ Received: from pih-relay06.plus.net ([212.159.14.19]) by relay.ptn-ipout01.plus.net with ESMTP; 05 May 2009 09:45:18 +0100 Received: from [84.92.153.232] (helo=curlew.milibyte.co.uk) by pih-relay06.plus.net with esmtp (Exim) id 1M1GH7-0005iM-Pl for freebsd-questions@freebsd.org; Tue, 05 May 2009 09:45:17 +0100 Received: by curlew.milibyte.co.uk with local (Exim 4.69) (envelope-from ) id 1M1GH7-0000o7-2V for freebsd-questions@freebsd.org; Tue, 05 May 2009 09:45:17 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Tue, 5 May 2009 09:45:16 +0100 User-Agent: KMail/1.9.10 References: <200905041018.00717.jmc-freebsd2@milibyte.co.uk> <49fff6e5.JdJRbLiNeEolnKU2%perryh@pluto.rain.com> In-Reply-To: <49fff6e5.JdJRbLiNeEolnKU2%perryh@pluto.rain.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905050945.16910.jmc-freebsd2@milibyte.co.uk> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false X-Plusnet-Relay: 670ae72b9a810a63094becd9b75e21fa Subject: Re: clear old output in login screen? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2009 08:45:19 -0000 On Tuesday 05 May 2009, perryh@pluto.rain.com wrote: > Mike Clarke wrote: > > On Monday 04 May 2009, perryh@pluto.rain.com wrote: > > ... > > > > ? #!/bin/csh > > > ? clear > > > ? vidcontrol -C > > > ? exec /usr/bin/login.real "$@" > > > > But this wouldn't prevent someone scrolling back with the scroll > > lock key before logging in. I assume the OP's requirement is to > > stop people from seeing previous users console activity. > > That's what the "vidcontrol -C" line is supposed to accomplish, > based on my reading of vidcontrol(1) and earlier messages in the > thread. Granted I have not actually tried it. Yes, "vidcontrol -C" will accomplish this, but my point was that including this as part of the replacement login script is too late. You don't need to be logged in to use the scroll lock and pg{Up,Dn} keys. To prevent people seeing the previous users activity you would need to clear the console buffer at the logout stage. -- Mike Clarke