■screen で画面ロックをかける

GNU screen 使用中に画面ロックをかけたい場合「METAキー + x」を入力すればよい。

Call a screenlock program (/local/bin/lck or /usr/bin/lock or a builtin, if no other is available). Screen does not accept any command keys until this program terminates. Meanwhile processes in the windows may continue, as the windows are in the detached state. The screenlock program may be changed through the environment variable $LOCKPRG (which must be set in the shell from which screen is started) and is executed with the user’s uid and gid.


Screen used by username .


注意点としては、マニュアルの warning にあるように、スクリーンロックを実行して detach しているだけであり($ screen -ls で “detached” を確認できる)、別ターミナルから attach 可能($ screen -r SCREENID)なので、ロックを掛けてもセキュリティは担保できない。

Warning: When you leave other shells unlocked and have no password set on screen, the lock is void: One could easily re-attach from an unlocked shell. This feature should rather be called lockterminal.


screen 利用中にたまにパスワードロックがかかることがあり、シェルの問題なのか、screen の問題なのか、切り分けがついていなかった。
screen  の一機能ということが判明し、これで一安心?


Tagged with: , , ,
Posted in linux, tip

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: