Re: Screen blanking on logout
On Friday 06 September 2002 14:43, Ian Johannesen wrote:
>
> Since I'm using bash2 I normally do
> echo 'clear' >> /etc/skel/.bash_logout
>
> But if you only want it for one local user you could just replace the
> above with:
> echo 'clear' >> ~/.bash_logout
>
> .bash_logout is executed when logout is issued.
>
Hi, your solution is not save enough... It can be changed by the user. It has
to be "over the user-level".
I solved it with this script:
-----
#!/bin/bash
clear
exec /sbin/getty 38400 $1
-----
And in the inittab i have then:
1:2345:respawn:/root/bin/shell tty1
The disadvantage about this approach is that if i loose the "shell" script i
wont be able to log into my system without tweaking with a second system...
cheers,
Raffaele
--
Raffaele Sandrini <rasa@gmx.ch>
Annoyed about M$ Windows? Don't worry. Try Linux! (www.linux.org)
Reply to: