Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Make tty1, tty2, etc. lock up after a certain period of time

  1. #1
    Join Date
    Sep 2008
    Location
    your profile
    Beans
    644
    Distro
    Ubuntu 12.04 Precise Pangolin

    Make tty1, tty2, etc. lock up after a certain period of time

    I sometimes find it convenient to use shells like tty1 in my work, but it occurs to me that leaving these logged in is a security risk if they don't lock up in the same way the desktop does so I have to type in my password to access them. Is there a way to make a shell session automatically do this in a way so that i can have a process like emacs or matlab still running?

  2. #2
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Make tty1, tty2, etc. lock up after a certain period of time

    Quote Originally Posted by Zorgoth View Post
    I sometimes find it convenient to use shells like tty1 in my work, but it occurs to me that leaving these logged in is a security risk if they don't lock up in the same way the desktop does so I have to type in my password to access them. Is there a way to make a shell session automatically do this in a way so that i can have a process like emacs or matlab still running?
    I suggest you use screen (you can lock your screen session with Ctrl-a x) and/or log out when you leave your terminal.

    You can try vlock, I do not have experience with it ...

    http://linux.die.net/man/1/vlock
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  3. #3
    Join Date
    Sep 2008
    Location
    your profile
    Beans
    644
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Make tty1, tty2, etc. lock up after a certain period of time

    vlock looks like just what I need. Eventually I'll have to figure out how to make it work automatically, but for now this is great. Thanks!

  4. #4
    Join Date
    Sep 2008
    Location
    your profile
    Beans
    644
    Distro
    Ubuntu 12.04 Precise Pangolin

    Make computer automatically "vlock -a" after being idle for a certain period of time

    I would like to automate the process of locking my entire system including tty1-tty6, so that if I am in my desktop and am idle for 30 minutes, and there is a console session active, I will execute vlock -a so my computer is locked up, and after I unlock it I want to be back in my standard desktop.

    Is there a way to do this?

  5. #5
    Join Date
    Sep 2008
    Location
    your profile
    Beans
    644
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Make computer automatically "vlock -a" after being idle for a certain period of t

    Alternatively, I would also be happy (I think) if when the screen was locked, virtual console switching and user switching were disabled until I type in my password.

  6. #6
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Make tty1, tty2, etc. lock up after a certain period of time

    Please don't create multiple threads on the same subject, I have merged your two threads.

  7. #7
    Join Date
    Sep 2008
    Location
    your profile
    Beans
    644
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Make tty1, tty2, etc. lock up after a certain period of time

    Quote Originally Posted by cariboo907 View Post
    Please don't create multiple threads on the same subject, I have merged your two threads.
    The problem is that I marked it as solved and can't unmark it.

  8. #8
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,294
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Make tty1, tty2, etc. lock up after a certain period of time

    You can use the TMOUT environment variable:

    http://www.walkernews.net/2007/05/15...user-in-linux/
    「明後日の夕方には帰ってるからね。」


  9. #9
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Make tty1, tty2, etc. lock up after a certain period of time

    +1 for screen

    Quote Originally Posted by Zorgoth View Post
    The problem is that I marked it as solved and can't unmark it.
    Thread Tools -> Mark this thread as unsolved.

  10. #10
    Join Date
    Sep 2008
    Location
    your profile
    Beans
    644
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Make tty1, tty2, etc. lock up after a certain period of time

    TMOUT doesn't work because I am often running emacs in these virtual consoles...

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •