· 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

ÀÌÁ¦ µÎ »ç¿ëÀÚ °èÁ¤ sohee¿Í ohara°¡ ÀÖ´Ù°í ÇÏÀÚ. 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
Words are the voice of the heart.


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.0045 sec