LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-12-2003, 07:05 PM   #1
kipbenson4
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Rep: Reputation: 0
Lock the current terminal session?


There might be an obvious answer to this, but it's not coming to me.

Is there any way to lock the terminal session so no commands can be entered at the prompt without a password verification?

For example, I'm have to leave my machine for a few minutes, but I don't want to completely close my SSH session. But I also don't want prying fingers rumaging through /bin while I'm gone.

Is there anythign built in to bash? Can I download something?

Thanks,
Kip
 
Old 08-14-2003, 09:04 AM   #2
arobic
Member
 
Registered: Jul 2003
Location: Geneva, Switzerland
Distribution: Debian 3.1, SLC3 (based on RHEL)
Posts: 84

Rep: Reputation: 15
You can do a xlock command which will lock your screen too and will ask you for a password to access your screen unchanged. This would a solution.

For bash, I think it would be hard to make it efficient on all open terminals and I don't if there is a built in.

Here is the command. You can also make it pretty by changing the mode (screen saver) or the defaults in the password window (see man xlock for details). Enjoy!

xlock -mode blank -nice 19
Of course, this is only valid if you are using X.

Hope this helps!
Andree
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
User Session Lock dutch1918 Suse/Novell 3 05-04-2006 04:01 PM
KDE Lock Session Hot Key sadarax Linux - Software 2 11-14-2005 03:55 PM
lock session / switch user wooot Suse/Novell 4 06-13-2005 01:54 PM
KDE 3.3.2 lock session pete123 Linux - Software 0 12-26-2004 12:38 PM


All times are GMT -5. The time now is 06:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration