· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
screen

screen



2. TIPS

2.1. 다른 유저의 attach 허용


서로 다른 계정의 화면을 하나로 합치는 방법.

2.1.1. screen 실행 파일의 setuid 퍼미션


시작하기 전에 screen 실행 파일에 setuid 퍼미션이 주어져 있는지 확인하자. 다음과 같이 나타나면 setuid 퍼미션이 주어진 것이다.
-rwsr-xr-x    1 root     root       478536 Jan 30  2003 /usr/bin/screen
그렇지 않다면 다음 명령으로 setuid 퍼미션을 준다.
$ chmod u+s /usr/bin/screen

이제 두 사용자 계정 soheeohara가 있다고 하자. sohee의 화면을 ohara가 함께 공유하려고 한다.

2.1.2. sohee가 할 일


우선, sohee.screenrc에 다음 내용을 추가한다.
multiuser on
acladd ohara
그리고 screen을 실행한다.
$ screen
세션을 확인한다.
$ screen -list
There is a screen on:
        18902.pts-3.wind (Multi, attached)
1 Socket in /tmp/screens/S-sohee.

2.1.3. ohara가 할 일


다음처럼 sohee의 screen 세션명을 지정해서 attach한다.

$ screen -x -S sohee/18902.pts-3.wind

ID
Password
Join
You are secretive in your dealings but never to the extent of trickery.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-10-31 15:18:44
Processing time 0.0046 sec