Re: locking idle text consoles
"jathan." <[email protected]>
| Newsgroups | gmane.comp.security.linux |
|---|---|
| Message-ID | <[email protected]> |
I think this is what you're looking for, altho it requires the use of
zsh (not necessarily a bad thing).
http://overtone.org/articles/zshrc.php
Interestingly, the code that does the work is:
# Automatically lock the terminal the terminal after 10 minutes of inactivity
# if we can find vlock, and if the terminal's not an xterm.
if [ -x /usr/local/bin/vlock ]; then
case $TERM in
xterm*)
;;
*)
TMOUT=600
TRAPALRM () {
clear
echo Inactivity timeout on $TTY
echo
STTY=sane vlock -c
echo
echo Terminal unlocked. [ Press Enter ]
}
;;
esac
fi
Which at first glance looks to be bash-compatible.
:)
On Mon, 22 Nov 2004 18:28:00 +0200, lonely wolf
<[email protected]> wrote:
> Chris Sibbitt wrote:
>
> >>I wonder if it's possible to lock out idle text consoles. The intended
> >>behaviour would be the same as a screensaver's in X Windows environment.
> >>
> >>
> >
> > Sure. If you use "screen" you can lock a screenset with ^Ax
> >
> > If you don't use screen, I highly recommend it.
> >
> > -=Chris
> >
> >
>
> screen is a very nice tool, but not useful for original problem.
> the idea was to _automatically_ lock consoles when not in use for a
> specified time interval (_not_ forcing the users to press a key). in
> other words, something similar to TMOUT but which would NOT logout
> users, just lock the console.
>
>
--
jathan.
00bliss.dj.switchstance
www.00bliss.com
571.243.2788
--