LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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



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 / openSUSE 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 / openSUSE 4 06-13-2005 01:54 PM
KDE 3.3.2 lock session pete123 Linux - Software 0 12-26-2004 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration