/etc/skel

Matt Zimmerman mdz at ubuntu.com
Tue Jun 21 13:22:51 CDT 2005


On Tue, Jun 21, 2005 at 10:54:17AM +0200, Guillermo Gutiérrez Herrera wrote:

> I'd like tell you an idea: why not make a
> default /etc/skel/.bash_aliases that contains:
> 
> alias exit='clear; logout 2> /dev/null';
> alias logout="exit";
> 
> Then, when sb type exit (or logout), the console flushes and nobody can
> read what he wrote.

If you want this functionality, the place to implement it would be in
getty(8).  For example, consider that your proposed implementation doesn't
work if the user uses a shell other than bash.

-- 
 - mdz



More information about the ubuntu-devel mailing list