[Gllug] Resetting VT after logout in Debian

Bruce Richardson itsbruce at uklinux.net
Tue Aug 27 23:35:04 UTC 2002


On Wed, Aug 28, 2002 at 12:25:54AM +0100, Mike wrote:
> On a RedHat system, one gets 6 configured virtual consoles. One can log
> in, do stuff, and logout. When one logs out, the screen is reset, and
> the respawned getty process outputs the contents of /etc/issue and a
> login: prompt at the top of the screen.
> 
> On a Debian box, the respawned getty dumps the contents of /etc/issue
> and the login prompt at the current cursor position, whatever it happens
> to be. Anyone wandering up to the console can potentially see a
> screeenful of the last users session.

This is a shell thing, not a getty thing.  Put something like this in
~/.bash_logout

case "`tty`" in
    /dev/tty[0-9]) clear
esac

and in /etc/skel/.bash_logout to make it a pseudo-default.  You
can't enforce it, afaik.


-- 
Bruce

A problem shared brings the consolation that someone else is now
feeling as miserable as you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 261 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20020828/bd2cec8a/attachment.pgp>


More information about the GLLUG mailing list