Operating System - HP-UX
1829108 Members
12903 Online
109986 Solutions
New Discussion

command to lock the terminal

 
SOLVED
Go to solution
Shivkumar
Super Advisor

command to lock the terminal

Hi,

What is the command to lock the terminal ( i used x term) on hpux ?

Similar to xlock on AIX.

Thanks,
Shiv
8 REPLIES 8
Warren_9
Honored Contributor

Re: command to lock the terminal

hi,

i think is "lock" in hp-ux.

GOOD LUCK!!
Shivkumar
Super Advisor

Re: command to lock the terminal

Also, what is the command to unlock the terminal ? Thanks. Shiv
Oviwan
Honored Contributor

Re: command to lock the terminal

Hi,
'man lock' answers all your questions.

Regards
Ninad_1
Honored Contributor
Solution

Re: command to lock the terminal

Just use the command
lock
which will ask you for a key [ enter some key/password]
When you wwant to unlock just type the key/password and the terminal will be unlocked.

Regards,
Ninad
Arunvijai_4
Honored Contributor

Re: command to lock the terminal

Hi Shiv,

You can simply type "lock" to lock up a xterm. When you come back, just move your mouse or press any key, it will ask password to unlock.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Asif Sharif
Honored Contributor

Re: command to lock the terminal

Hi Shivkumar,

First way is use "lock" command.

Example:-

# lock
Key:give passwd
Again:give same passwd
LOCKED
After that give passwd to unlock.

2nd way is,

CTRL+S freeze your terminal. press CTRL+Q to start responding again.

First way is recommended.

Regards,
Asif Sharif
Regards,
Asif Sharif
rariasn
Honored Contributor

Re: command to lock the terminal

/home/user1?lock
Key:
Again:
LOCKED

On another terminal,

$ ps -fu user1

user1 14288 23885 0 11:31:24 pts/1 0:00 lock

With user root:

$ kill 14288

...
Key:
Again:
LOCKED
Terminated <<--

lock(1) lock(1)

NAME
lock - reserve a terminal

SYNOPSIS
lock

DESCRIPTION
lock requests a password from the user, then prints LOCKED on the
terminal and refuses to relinquish the terminal until the password is
repeated. If the user forgets the password, the only recourse is to
log in elsewhere and kill the lock process.

Hewlett-Packard Company - 1 - HP-UX Release 11i: November 2000


rgs,
ran
Raj D.
Honored Contributor

Re: command to lock the terminal

Hi Shiv ,

its "lock"

$ lock
Key:
Again:
LOCKED


Once it loked user can not do anything.

To unclock you have to provide the password given at the time of locking.


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "