Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Focus-Linux
[Top] [All Lists]

Re: locking idle text consoles

Subject: Re: locking idle text consoles
Date: Mon, 22 Nov 2004 18:28:53 -0500
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
<wolfy@nobugconsulting.ro> 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
--

<Prev in Thread] Current Thread [Next in Thread>