´ÙÀ½ ÀÌÀü Â÷·Ê

2. Using mgetty

mgetty´Â init process·Î Á÷Á¢ È£ÃâÇؾ߸¸ loginÀÌ °¡´ÉÇϱ⠶§¹®¿¡ /etc/rc°°Àº shell script, ¶Ç´Â ´ëÈ­ÀûÀ¸·Î È£ÃâÇÒ ¼ö ¾ø½À´Ï´Ù. ´ÙÀ½ÀÇ section¿¡¼­ ¾î¶»°Ô ÀÌ°ÍÀ» ÇÏ´Â Áö ¼³¸íÇÕ´Ï´Ù.

2.1 How mgetty works

¾î¶»°Ô mgetty°¡ µ¿ÀÛÇÏ´Â Áö¸¦ ÀÌÇØÇϱ⠽±°ÔÇϱâ À§Çؼ­ modemÀÌ /dev/tty2a¿¡ ¿¬°áµÇ¾î ÀÖ´Ù°í °¡Á¤ÇÏ°í ¿©·¯ »óȲ¿¡¼­ serial line¿¡ ¿¬°áµÈ ¸ðµ©À» controlÇÒ ¶§ ¹«¾ùÀÌ ¹ß»ýÇÏ´Â Áö¸¦ ¿¹¸¦ µé¸é¼­ ¾Ë¾Æº¸°Ú½À´Ï´Ù.

computer°¡ bootingµÉ ¶§ virtual terminal, serial line, ±×¸®°í modem µî ÀûÀýÇÑ i/o deviceµé¿¡¼­ µ¿ÀÛÇÏ´Â gettyµéÀ» È£ÃâÇÏ´Â init process¸¦ ½ÃÀÛÇÕ´Ï´Ù. initÀº mgetty¿¡°Ô /dev/tty2a lineÀ» controlÇϵµ·Ï ÇÏ´Â ¼³Á¤fileÀÎ /etc/inittab (System VÀÇ °æ¿ì)À» ÀоîµéÀÔ´Ï´Ù. ´ÙÀ½¿¡ /etc/utmp¿¡ ÀÔ·ÂÇÏ°í (loginÀº ÀÌ°ÍÀÌ ÇÊ¿äÇÏ°í, µû¶ó¼­ ¼öµ¿À¸·Î mgetty¸¦ ±âµ¿ÇÏ·Á°í Çϸé loginÇÒ ¼ö ¾ø½À´Ï´Ù.) ¸í½ÃµÈ ¸í·ÉÇà¿¡ µû¶ó¼­ »õ mgetty process¸¦ forkÇÕ´Ï´Ù.

mgetty´Â ½ÃÀÛÇÒ ¶§ ¸ÕÀú ´Ù¸¥ process°¡ Àâ°í ÀÖ´Â À¯È¿ÇÑ lock fileÀÌ ÀÖ´ÂÁö Á¡°ËÇÕ´Ï´Ù. ÀÖÀ¸¸é ÀÌ port´Â »ç¿ëÁßÀ̱⶧¹®¿¡ mgettyÀº lock fileÀÌ »ç¶óÁú ¶§±îÁö ±â´Ù¸³´Ï´Ù. Á¸ÀçÇÏÁö ¾Ê´Â processµé (stale locks)ÀÇ À¯È¿ÇÏÁö ¾ÊÀº lock fileµéÀº ¹«½ÃµË´Ï´Ù.

port°¡ ¿­¸®¸é mgetty´Â ÀÚ½ÅÀÇ lock fileÀ» ¸¸µé°í, modemÀ» ÃʱâÈ­ÇÑ ´ÙÀ½¿¡ lock fileÀ» ¾ø¾Û´Ï´Ù. ±×¸®°í¼­´Â port¿¡ ¹«¾ùÀΰ¡°¡ ¹ß»ýÇϱ⸦ ±â´Ù¸³´Ï´Ù. character¸¦ Àд °ÍÀÌ ¾Æ´Ï°í poll()À̳ª select()¸¦ ÀÌ¿ëÇؼ­ ÀÐÀ» ¸¸ÇÑ °ÍÀÌ ÀÖ´ÂÁö ¾Ë¾Æº¼ ºÐÀÔ´Ï´Ù.

character°¡ µµÂøµÇ¸é uucicoµî ´Ù¸¥ programÀÌ ÀüÈ­¸¦ °É±â ½ÃÀÛÇ߰ųª ¾Æ´Ï¸é modemÀÌ RINGÀ» º¸³Â°Å³ª ÇÏ´Â µÎ °¡ÁöÀÇ °¡´É¼ºÀÌ ÀÖ½À´Ï´Ù. ù¹ø° °æ¿ì, mgetty´Â port¸¦ °Çµå¸®Áö ¾Ê½À´Ï´Ù. ÀÌ°ÍÀº ÀüÈ­°Å´Â ÇÁ·Î±×·¥ÀÌ À¯È¿ÇÑ lock fileÀ» ¸¸µé¾úÀ¸¸é ½±½À´Ï´Ù. mgetty´Â ±×°ÍÀ» ¾Ë¾ÆÂ÷¸®°í, »ç¶óÁö±â¸¦ ±â´Ù¸³´Ï´Ù. (initÀº ´ÙÀ½ callÀ» ±â´Ù¸®´Â »õ mgetty process¸¦ ½ÃÀÛÇÕ´Ï´Ù.)

µÎ¹ø° °æ¿ì, lock fileÀÌ ¾øÀ¸¸é mgetty´Â ÀüÈ­°¡ ¿ï¸°´Ù°í ¿©±â°í, lock fileÀ» ¸¸µé°í °¡´ÉÇÑ character¸¦ ÀнÀ´Ï´Ù. RINGÀ» ãÀ¸¸é ATA¸¦ º¸³»¼­ ÀüÈ­¸¦ µé°í CONNECT message¸¦ ±â´Ù¸³´Ï´Ù. »ó´ë¹æÀÌ fax machineÀ̸é FAX_SPOOL_IN (º¸Åë /var/spool/fax/incoming) µð·ºÅ丮¿¡ fax¸¦ ÀúÀåÇÑ ÈÄ¿¡ ³ª°©´Ï´Ù. modemÀ̸é /etc/issue¸¦ ÀμâÇÏ°í login prompt¸¦ Ç¥½ÃÇÕ´Ï´Ù. login stringÀ» ¹Þ¾Æµé¿´À¸¸é /bin/loginÀ» È£ÃâÇÏ¿© ¿©±â¼­ºÎÅÍÀÇ ÀϵéÀ» ó¸®ÇÏ°Ô ÇÕ´Ï´Ù. loginÀº password¸¦ Àаí userÀÇ login shellÀ̳ª uucicoÀ̳ª dialup SLIP link µî ¹«¾ùÀÌ µÆ´øÁö ½ÃÀÛÇÏÁö¸¸, mgetty´Â ±×°Í¿¡ °ü¿©ÇÏÁö ¾Ê½À´Ï´Ù. ´©±º°¡°¡ loginµÇ¾î ÀÖ´Â µ¿¾È¿¡´Â ´Ù¸¥ programµéÀÌ modemÀ» »ç¿ëÇÏÁö ¸øÇϵµ·Ï lock fileÀÌ Á¸ÀçÇÕ´Ï´Ù.

(login.config¼³Á¤fileÀ» »ç¿ëÇϸé, /bin/loginÀÌ ¾Æ´Ñ ´Ù¸¥ login programÀ» ºÎ¸¦ ¼öµµ ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ °ÍÀº ¹ØÀ» º¸½Ê½Ã¿À.)

¾î¶² ÀÌÀ¯¿¡¼­µçÁö mgetty°¡ Á¾·áµÇ¸é initÀº ÇØ´ç port¸¦ reinitializeÇÏ°í (ÀÌ·¡¼­ mgetty´Â Áï½Ã Á¾·áÇÏÁö ¾Ê°í lock fileÀÌ ¾ø¾îÁö±â¸¦ ±â´Ù¸³´Ï´Ù.) ¹Ù·Î ÀüÀÇ loginÀÌ ³²°Ü³õÀº lock fileÀ» Á¦°ÅÇÏ´Â »õ·Î¿î mgetty process¸¦ ½ÃÀÛÇÕ´Ï´Ù.

lock file Ãë±ÞÀº ±î´Ù·ÓÁö¸¸ ¸Å¿ì Áß¿äÇÕ´Ï´Ù. modemÀ» »ç¿ëÇÏ´Â ¸ðµç programÀº ÇÑ°¡ÁöÀÇ locking protocol¿¡ µ¿ÀÇÇϴ°ÍÀÌ ÇʼöÀÔ´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é programÀº modemÀÌ »ç¿ëÁßÀÎ ÁÙ ¸ð¸£°í ¾î·µç ÀüÈ­¸¦ °É·Á°í ÇÒ °ÍÀÔ´Ï´Ù. ÀüÇüÀûÀÎ lock fileÀº /var/lock/LCK...ttyxxÀÌ°í ÇöÀç modemÀ» »ç¿ëÁßÀÎ processÀÇ process ID (PID)¸¦ Æ÷ÇÔÇÕ´Ï´Ù. ´Ù¸¥ processµéÀº ±×°ÍÀ» Àо ÇöÁ¸ÇÏ´Â process¿¡ ¼ÓÇÏ´Â Áö, staleÀ̾ Á¦°ÅÇÒ ¼ö ÀÖ´Â Áö¸¦ ¾Ë ¼ö ÀÖ½À´Ï´Ù. process°¡ lock fileÀ» ´Ù¸¥ °÷¿¡¼­ ã°Å³ª ¾î¶² °ÍÀº ASCII·Î PID¸¦ Àû°í, ¾î¶² °ÍÀº binary number·Î µÈ PID¸¦ ÀÐÀ¸·Á Çϸé À¯È¿ÇÏÁö ¾Ê°Ô µË´Ï´Ù. (mgetty¿Í sendfax´Â ¿ÜºÎ lock fileÀÌ binaryÀ̵çÁö asciiµçÁö »ó°ü¾øÁö¸¸ ´Ù¸¥ programµéÀº »ó°üÀÖ½À´Ï´Ù. mgetty´Â ¾î¶²¶§´Â ÀÌ·¯ÇÑ ¹®Á¦¸¦ ¾Ë¾ÆÂ÷·Á¼­ warningÀ» logÇÕ´Ï´Ù.)

2.2 The '/etc/inittab' entry

ÀüÇüÀûÀÎ mgettyÀÇ inittab µî·ÏÀº ´ÙÀ½°ú °°ÀÌ ÇÕ´Ï´Ù. (SystemV-style OS's)

 
   <tt>:rlevel:<respawn|off>:/usr/local/sbin/mgetty [options] <device>

¿©±â¼­ tt´Â init°ú ³»ºÎ¿ëÀÇ who°¡ »ç¿ëÇÏ´Â device¸íÀÇ °£·«ÇüÀÔ´Ï´Ù. º¸Åë S0 ¶Ç´Â 2A µîÀ¸·Î µË´Ï´Ù.

rlevelÀº ³×¹øÂî fieldÀÇ command°¡ °¡µ¿µÇ´Â runlevel·Î¼­ 23 ¶Ç´Â 56 µîÀ¸·Î µÇ´Âµ¥ man init°ú ÇöÁ¸ÇÏ´Â /etc/inittabÀ» º¸½Ã±â ¹Ù¶ø´Ï´Ù.

´ÙÀ½ field´Â init¿¡°Ô ÇØ´çÇ׸ñÀÌ active(respawn)ÇÑÁö ±×·¸Áö ¾ÊÀºÁö (off) ¾Ë·ÁÁÝ´Ï´Ù. ±×¸®°í ³×¹ø° field´Â °¡µ¿ÇÒ programÀÇ full path¸¦ ¸í½ÃÇÕ´Ï´Ù.

´ÙÀ½ÀÇ ¼±ÅûçÇ×µéÀÌ °¡´ÉÇÕ´Ï´Ù.

-x <level>

ÀÌ°ÍÀº debugging levelÀ» Á¤ÇÕ´Ï´Ù. ³ôÀº levelÀ» ÁÖ¸é ³»ºÎÀÛµ¿¿¡ ´ëÇÑ ¸Å¿ì ÀÚ¼¼ÇÑ Á¤º¸°¡ log file¿¡ ÀûÈ÷±â ¶§¹®¿¡ ¹®Á¦¸¦ Áø´ÜÇϴµ¥ ¸Å¿ì Áß¿äÇÕ´Ï´Ù.

-s <speed>

ÀÌ°ÍÀº portÀÇ speed¸¦ Á¤ÇÕ´Ï´Ù. ¸í½ÃÇÏÁö ¾ÊÀ¸¸é policy.h (definition DEFAULT_PORTSPEED)¿¡ ÀÖ´Â default°¡ »ç¿ëµË´Ï´Ù.

-k <space>

ÀÌ°ÍÀº incoming FAX spool directory¿¡ ¿ä±¸µÇ´Â ÃÖ¼Ò kbyteÀ» Á¤ÇÕ´Ï´Ù. spool directory¿¡ À̸¸Å­ÀÇ space°¡ ¾øÀ¸¸é ¿¬°áÀº Á¾·áµË´Ï´Ù. default´Â 1 megabyteÀÔ´Ï´Ù.

-m 'expect send ...'

ÀÌ°ÍÀº modem ÃʱâÈ­ sequence¸¦ Á¤ÇÕ´Ï´Ù.

-r

ÀÌ°ÍÀº Á÷Á¢¿¬°á¼±¿¡ »ç¿ëÇÕ´Ï´Ù. (modem chatÀÌ µÇÁö ¾Ê½À´Ï´Ù.)

-p <login prompt>

ÀÌ°ÍÀº (´Ù¾çÇÑ escape°¡ Çã¿ëµÇ´Â) login promt¸¦ Á¤ÇÕ´Ï´Ù.

-n <rings>

ÀÌ°ÍÀº ÀüÈ­¸¦ ¹Þ±â À§ÇÑ ATA¸¦ º¸³»±â Àü¿¡ ¹Þ¾ÆµéÀÏ RING messageÀÇ ¼ö¸¦ Á¤ÇÕ´Ï´Ù. default´Â ÇÑ°³ÀÇ RINGÀÔ´Ï´Ù.

-R <sec>

ÀÌ°ÍÀº ring-back³ª ring-twince¸¦ °¡´ÉÇÏ°Ô ÇÕ´Ï´Ù. ÀÌ·¸°Ô Çϸé mgetty´Â callÀ» Áï½Ã pick-upÇÏÁö ¾Ê°í ÀüÈ­¸¦ °Ç»ç¶÷Àº ù¹ø° ringµÚ¿¡ ÀüÈ­¸¦ ²÷¾ú´Ù°¡ <sec>ÃÊ µÚ¿¡ ´Ù½Ã °É¾î¾ß ÇÕ´Ï´Ù.

-i '/etc/issue'

ÀÌ°ÍÀº loginÀ» promptÇϱâ Àü¿¡ º¸¿©ÁÙ issue fileÀ» ¸í½ÃÇÕ´Ï´Ù.

-S '<fax_document>'

ÀÌ°ÍÀº (full path¸¦ Àû¾î¼­) pollingÀ» ¿ä±¸ÇÏ´Â fax machine¿¡ º¸³»ÁÙ ¹®¼­, ¶Ç´Â (ÇÑ ÁÙ¿¡ ÇÑ file¾¿) G3 fax fileÀ» listÇÑ text fileÀ» ¸í½ÃÇÕ´Ï´Ù.

/etc/inittabÀÇ µî·Ï º»º¸±â´Â ´ÙÀ½°ú °°½À´Ï´Ù.

 F1a:23:respawn:/usr/local/sbin/mgetty -x 3 tty2a

option¿¡ ´ëÇØ ´õ ÀÚ¼¼ÇÑ ¼³¸íÀ» ¿øÇϽøé mgetty(1) man page¸¦ º¸½Ê½Ã¿À.

2.3 Choosing the right device

serial line¸¶´Ù º°µµÀÇ device¸¦ µÎ °³¾¿ ¸¶·ÃÇÏ´Â operating systemµéµµ Àִµ¥, ±×Áß¿¡¼­ Çϳª´Â getty¿¡°Ô Ưº°È÷ ÇÒ´çµË´Ï´Ù. ÀÌ°ÍÀº mgetty¿Í´Â Àß ¸ÂÁö ¾Ê±â¶§¹®¿¡ ÁÁÀº ¹æ¹ýÀº ¾Æ´Ï°í auto-answer mode¿¡ ÁÖ·Î Àû¿ëµË´Ï´Ù.

¹ÛÀ¸·Î ÀüÈ­¸¦ °Å´Â device¸¦ °°ÀÌ »ç¿ëÇÒ ¶§¿¡¸¸ mgetty°¡ ÀüÈ­¸¦ ¼öµ¿À¸·Î ¹Þ°ÔÇÒ ¼ö ÀÖ½À´Ï´Ù. /dev/modemÀ¸·Î symlink¸¦ ¸¸µå´Â »ç¶÷µéµµ Àִµ¥, À̶§´Â ¸ðµç comm programµéµµ ¶È °°ÀÌ Àû¿ëÇؾßÁö ±×·¸Áö ¾ÊÀ¸¸é lock file name¶§¹®¿¡ ¹®Á¦°¡ »ý±é´Ï´Ù.

¿©·¯ system¿¡ ´ëÇÑ º¸±â´Â ´ÙÀ½°ú °°½À´Ï´Ù (¿ªÀÚÁÖ: Linux¸¸À» ¿¹·Î µì´Ï´Ù).

Linux:

/dev/ttyS* ÀÔ´Ï´Ù. (/dev/cua*°¡ ¾Æ´Õ´Ï´Ù. Linux Section À» º¸½Ê½Ã¿À.)

2.4 Log files

mgetty´Â ¸ðµç ÀÏÀ» LOG_PATH.<device>¶ó´Â logfile¿¡ Àû½À´Ï´Ù. (LOG_PATH´Â policy.h¿¡ Á¤ÀǵǾî ÀÖ½À´Ï´Ù.)

¿¹¸¦ µé¸é /var/log/mgetty.ttyxx¿¡ system¿¡¼­ ÀϾ´Â »çÇ×À» º¼ ¼ö ÀÖ½À´Ï´Ù. (fatal error°¡ ÀÖÀ¸¸é console¿¡µµ Àû´Âµ¥ °¡´ÉÇÏÁö ¾ÊÀ¸¸é ADMIN¿¡°Ô mailÀ» º¸³À´Ï´Ù.) log fileÀÇ ¸íĪÀº policy.h¿¡¼­ ¹Ù²Ü ¼ö ÀÖ½À´Ï´Ù.

-DSYSLOG ¿É¼ÇÀ¸·Î mgetty¸¦ compileÇϸé auditing°ú error log message¸¦ syslog¿¡µµ Àû½À´Ï´Ù. (systemÀÌ Áö¿øÇØ¾ß ÇÕ´Ï´Ù.)

2.5 Denying logins

mgetty°¡ ÀüÈ­¸¦ ¹ÞÁö ¾Ê°Ô ÇÏ·Á¸é /etc/nologin.<device> (¿¹¸¦ µé¸é /etc/nologin.tty2a) fileÀ» ¸¸µì´Ï´Ù. mgetty°¡ incoming callÀ» ¾Ë¾ÆÂ÷·È´Âµ¥ ÀÌ fileÀÌ ÀÖÀ¸¸é ÀüÈ­¸¦ ¹ÞÁö ¾Ê½À´Ï´Ù. ÀÌ·¸°Ô ÇØ¾ß ÀüÈ­¸¦ °Å´Â »ç¶÷Àº loginÀÌ Çã¶ôµÇÁö ¾Ê´Â »óȲ¿¡¼­ ¾µµ¥¾ø´Â ÀüÈ­·Î µ·À» ÇãºñÇÏÁö ¾Ê°Ô µË´Ï´Ù. policy.h¿¡ ÀÖ´Â NOLOGIN_FILE¸¦ º¯°æÇؼ­ filenameÀ» ¹Ù²Ü ¼ö ÀÖ½À´Ï´Ù.)

ÀÌ·¸°Ô Çϸé - ³·¿¡´Â À½¼ºÅë½ÅÀ¸·Î ¾²´Â ÀüÈ­¼±¿¡ ¿¬°áµÈ modemÀÇ °æ¿ì µî¿¡ - ²Ï ¼¼·ÃµÈ schedulingÀ» ÇÒ¼ö ÀÖ½À´Ï´Ù. modemÀÌ Àú³á 9½ÃºÎÅÍ ¾Æħ 7½Ã±îÁö¸¸ ÀüÈ­¸¦ ¹Þ°Ô ÇÒ ¼ö ÀÖ½À´Ï´Ù. cronÀ¸·Î ÇÏ¿©±Ý /etc/nologin.device fileÀ» ¾Æħ 7½Ã¿¡ ¸¸µé¾î¼­ modemÀÌ ³·µ¿¾È¿¡´Â ÀüÈ­¸¦ ¹ÞÁö ¾Ê°Ô ÇÏ°í, Àú³á 9½Ã¿¡ Áö¿ö¼­ ¹ã¿¡´Â ÀüÈ­¸¦ ¹Þ°Ô ÇÏ¸é µË´Ï´Ù.

ÀÚ¿¬ÀûÀ¸·Î È®Àå½Ãų ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¸é, ÁÖ¸»¿¡¸¸ ÀüÈ­¸¦ ¹Þ°Ô ÇÑ´ÙµçÁö (ºñ½ÁÇÑ cron jobÀÔ´Ï´Ù.), diskÀÇ ¿ë·®ÀÌ 5 Mbyteº¸´Ù ÀûÀ¸¸é ¹øÈ­¸¦ ¹ÞÁö ¾Ê°Ô ÇÑ´ÙµçÁö (ÁÖ±âÀûÀ¸·Î process°¡ free disk space¸¦ °Ë»çÇؼ­ /etc/nologin.* fileÀ» ¸¸µé°Ô ÇÕ´Ï´Ù.) µîÀÔ´Ï´Ù.

2.6 Direct serial lines

µÎ unix machine ¶Ç´Â unix machine°ú ´Ù¸¥ °ÍÀÌ direct serial lineÀ¸·Î ¿¬°áµÇ¾î ÀÖ°í outgoing traffic°ú Ãæµ¹ÇÏÁö ¾Ê´Â unixÂÊ¿¡ getty programÀ» ¿î¿µÇÏ°íÀÚ ÇÒ ¶§µµ (¿¹¸¦ µé¸é, µÎ unix machineÀÌ À־ ¸ðµÎ getty¸¦ ¿î¿µÇÏ°í ÀÖ°í, ¸ðµÎ uucp ¿¬°áÀ» ±âµ¿ÇÒ ¼ö ÀÖ´Â °æ¿ì) mgetty¸¦ ¾µ ¼ö ÀÖ½À´Ï´Ù. -r ¿É¼ÇÀ¸·Î ½ÃÀÛÇϸé modemÀ» initializeÇÏÁöµµ RINGÀ» ±â´Ù¸®Áöµµ ¾Ê½À´Ï´Ù. ´Ù¸¸ port¿¡¼­ Á¶¿ëÈ÷ ±â´Ù¸± »ÓÀÔ´Ï´Ù. »ó´ëÆí¿¡¼­´Â mgetty°¡ ÃÖ¼Ò ÇÑ character¸¦ ¹Þ±â Àü¿¡´Â /etc/issue¸¦ º¼ ¼ö ¾ø±â ¶§¹®¿¡ µÎ mgetty´Â ¼­·Î ¿¹±âÇÒ ¼ö ¾ø½À´Ï´Ù.

ÀÌ·¯ÇÑ ¹æ¹ýÀº leased line with modem¿¡ ´ëÇØ¿© lease line mode¿¡¼­µµ À¯È¿ÇÒ °ÍÀÌÁö¸¸ modem setup¿¡ µû¸¦ Áöµµ ¸ð¸¨´Ï´Ù.

2.7 Interaction between mgetty and other programs

º¸Åë ÀüÈ­°Ç »ç¶÷ÀÌ login nameÀ» ³ÖÀ¸¸é mgetty´Â /bin/loginÀ» ºÒ·¯¼­ password¸¦ °Ë»çÇÏ°í system loginÀ» ÇÕ´Ï´Ù.

Ưº°ÇÑ °æ¿ì·Î´Â /bin/login´ë½Å¿¡ ´Ù¸¥ programÀ» ºÎ¸¦ ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¸é, U*·Î ½ÃÀÛÇÏ´Â login nameµé¿¡°Ô´Â (uucico°¡ authenticationÀ» ÇÏ´Â) /usr/lib/uucp/uucico -L <username>À» ºÎ¸£°Å³ª (ÀÌ ¶§¿¡´Â taylor uucp 1.05³ª patches/taylor.pl¿¡ ÀÖ´Â patch¸¦ Àû¿ëÇÑ taylor uucp 1.04À» °°ÀÌ »ç¿ëÇý¾ß ÇÕ´Ï´Ù.), incoming Fidonet call¿¡ ´ëÇÏ¿© (Eugene CrosserÀÇ ifmail package¿¡ ÀÖ´Â ifcico¸¦ »ç¿ëÇÏ¿©) /usr/lib/fnet/ifcico¸¦ ºÎ¸¦ ¼öµµ ÀÖ½À´Ï´Ù.

mgetty·Î ÀÌ ¸ðµç °ÍÀ» ÇÒ ¼ö ÀÖ½À´Ï´Ù. login.config ¼³Á¤ file·Î Á¶Á¤ÇÏ´Â µ¥, ÀÌ°ÍÀº º¸Åë (policy.hÀÇ LOGIN_CFG_FILE·Î Á¤ÀǵÈ) /usr/local/etc/mgetty+sendfax/¿¡ ÀÖ½À´Ï´Ù. Àú´Â comment¸¦ ¸¹ÀÌ »ç¿ëÇÏ¿© sample fileÀ» ÁغñÇßÀ¸´Ï °Å±â¿¡ ÀÖ´Â »ç¿ë±¸¹®À» º¸¾ÆÁֽñ⠹ٶø´Ï´Ù. mgetty´Â -DFIDO·Î compileµÇ¾î¾ß incoming fido callÀ» ¾Ë¾ÆÂ÷¸± ¼ö ÀÖ½À´Ï´Ù.

º¸¾È¶§¹®¿¡ °ÆÁ¤µÇ½Ã¸é ´ÙÀ½ÀÇ ¹æ¹ýÀ» Àû¿ëÇϽñ⠹ٶø´Ï´Ù. ½Å·ÚÇÏ°í ÀÌ¹Ì ¾Æ´Â »ç¿ëÀڵ鿡 ´ëÇؼ­¸¸ /bin/loginÀ» ºÎ¸£°í, /bin/false´Â ´Ù¸¥ login name¿¡ ´ëÇؼ­ ºÒ·¯¼­ login.config¿¡ ±âÀçµÈ »ç¶÷µé¸¸ log inÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

2.8 Using Caller-ID to selectively accept or reject calls

¾î¶² Àüȭȸ»çµéÀº Caller ID¶ó´Â service¸¦ °¡ÀÔÀڵ鿡°Ô Á¦°øÇÏ¿© ÀüÈ­°Ç»ç¶÷ÀÇ ÀüÈ­¹øÈ£°¡ Àü¼ÛµÇ¾îµµ·Ï ÇÕ´Ï´Ù. Áö¿ø¿©ºÎ´Â ÇØ´çȸ»ç¿¡ ¾Ë¾Æº¸¼Å¾ß ÇÕ´Ï´Ù.

modemÀÌ callerid Á¤º¸¸¦ ÃßÃâÇÒ ¼ö ÀÖ°í, mgetty°¡ policy.h¿¡ Á¤ÀÇµÈ CNDFILE·Î compileµÇ¾úÀ¸¸é mgetty´Â ÀüÈ­¸¦ ¹Þ±âÀü¿¡ ÀüÈ­°Ç»ç¶÷ÀÇ ¹øÈ£¸¦ °Ë»çÇÒ ¼ö ÀÖ½À´Ï´Ù. (Áö±Ý ´çÀåÀº ZyXEL¿¡¸¸ Àû¿ëµÈ´Ù°í ¾Ë°í ÀÖ½À´Ï´Ù. Rockwell¿ëµµ ¸¸µé¾úÁö¸¸ ¾ÆÁ÷ feedbackÀ» ¾òÁö ¸øÇß½À´Ï´Ù. Áö¿øÀÚ´Â ³ª¼­ Áֽñ⠹ٶø´Ï´Ù.) CNDFILEÀÌ Á¤ÀǵÇÁö ¾Ê¾Ò°Å³ª ±× fileÀÌ ¾ø´Ù¸é ¸ðµç ÀüÈ­°¡ Çã¿ëµË´Ï´Ù.

Áß¿ä»çÇ× : ´ëºÎºÐÀÇ analog modemµéÀº (mgetty.config¿¡ 'rings 2'¶ó°í ¼³Á¤ÇÏ¿©) ´ë±â RING¼ö¸¦ 2°³ ÀÌ»óÀ¸·Î ÇØ¾ß ÇÕ´Ï´Ù. ID code°¡ ù¹ø°¿Í µÎ¹ø° RING »çÀÌ¿¡ º¸³»Áö±â ¶§¹®ÀÔ´Ï´Ù. mgetty°¡ ³Ê¹« »¡¸® ÀüÈ­¸¦ µé¸é modemÀº ÀÌ Á¤º¸¸¦ ¾òÀ» ¼ö ¾ø½À´Ï´Ù.

ÀüÈ­¸¦ ¹ÞÀ» Áö ¹ÞÁö ¾ÊÀ» Áö´Â policy.hÀÇ CNDFILE·Î Á¤ÇØÁø ¼³Á¤ file·Î Á¶Á¤ÇÕ´Ï´Ù. º¸Åë /usr/local/etc/mgetty+sendfax/dialin.config°¡ defaultÀÔ´Ï´Ù. (º¸±â fileÀº default¿¡ ÀÇ°ÅÇÏ¿© ¼³Ä¡µÇ¾ú½À´Ï´Ù.)

±× file¿¡´Â ÀÏ·ÃÀÇ tokenµéÀÌ newline, comma, tab, space µîÀ¸·Î ±¸ºÐµÇ¾î ÀÖ½À´Ï´Ù. ¸Â´Â tokenÀÌ ÀÖÀ» ¶§±îÁö callerid ¼ýÀÚ´Â °¢°¢ÀÇ token°ú Â÷·Ê´ë·Î ºñ±³µË´Ï´Ù. callerid Á¤º¸°¡ tokenÀÇ ±æÀ̸¸Å­ ºñ±³µÇ¾î °°À¸¸é ÀÏÄ¡µÇ´Â °ÍÀÔ´Ï´Ù. token¾Õ¿¡ '!'ÀÌ ºÙ¾î ÀÖÀ¸¸é ÀüÈ­¸¦ ¹ÞÁö¸»¶ó´Â ¶æÀÔ´Ï´Ù. 'all'Àº ¾î¶² ÀüÈ­¹øÈ£µçÁö ÀÏÄ¡½ÃÅ°±â ¶§¹®¿¡ cndfileÀ» ´õÀÌ»ó scanÇÏÁö ¾Ê½À´Ï´Ù. callerid ¼ýÀÚ°¡ ¾øÀ¸¸é 'none'À¸·Î °¡Á¤ÇÕ´Ï´Ù. '#'·Î ½ÃÀ۵Ǹé commentÀÔ´Ï´Ù. fileÀÇ ¸Ç ³¡¿¡´Â 'all'ÀÌ ÀÖ´Ù°í °¡Á¤µË´Ï´Ù.

¿¹¸¦ µé¸é ´ÙÀ½°ú °°½À´Ï´Ù.

          # list of my friends' data lines
          3433535, 7445343, 5551212
          # dad's fax
          4164646777
          # disallow [other] calls from numbers matching the following prefix:
          !416
          # disallow that speed dialer that keeps hitting my machine
          !3444444
          # allow all calls with the following prefixes
          832, 555
          # don't allow calls when there's no callerid:
          !none
          # It's okay to accept calls from out of area
          # ("OUT_OF_AREA" token seems ZyXEL specific)
          OUT_OF_AREA
          # disallow all other calls
          !all

¾ÕÀ¸·Î Chris Lewis°¡ »ó´ë¹æ ÀüÈ­ ¹øÈ£¿¡ µû¸¥ Ưº°ÇÑ modem initialization string (¿¹¸¦ µé¸é 2400 bps¿ë, fax¿ë µî)À» ´õÇÒ °èȹÀÔ´Ï´Ù.

´ëºÎºÐÀÇ °æ¿ì¿¡´Â ÀÌ·¯ÇÑ Á¤Àû ¼³Á¤À¸·Îµµ ÃæºÐÇÕ´Ï´Ù. Ưº°È÷ ÇÊ¿äÇÏ´Ù¸é ÀÌ°ÍÀ» °áÁ¤Çϱâ À§ÇØ ¿ÜÀû programÀ» ½ÇÇà½Ãų ¼öµµ ÀÖ½À´Ï´Ù. ±× program À̸§Àº mgetty.config¿¡ ÀÖ´Â cnd-program statement·Î ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±× ¸í·ÉÇà Àμö´Â ´ÙÀ½°ú °°½À´Ï´Ù.

 
<program> <tty> <CallerID> <Name> <dist-ring-nr.> <Called Nr.> 

CallerID´Â ¾Ë·ÁÁø´Ù¸é »ó´ë¹æÀüÈ­ÀÇ ¹øÈ£ÀÌ°í, ±×·¸Áö ¾ÊÀ¸¸é 'none'ÀÔ´Ï´Ù. NameÀº »ó´ë¹æÀÇ À̸§À̰ųª, ¾Ë·ÁÁöÁö ¾Ê¾ÒÀ» °æ¿ì¿¡´Â ' 'ÀÔ´Ï´Ù. dist-ring-nr´Â ÀüÈ­¼±¿¡ µ¶Æ¯ÇÑ RINGÀÌ ÀÖ°í modemÀÌ À̸¦ Áö¿øÇÒ ¶§ÀÇ RING typeÀ̰ųª ¾Ë·ÁÁöÁö ¾ÊÀº ÀüÈ­¿¡ ´ëÇؼ­´Â '0'ÀÔ´Ï´Ù.

Called Nr.´Â (ISDNÀÌ°í, ELSA³ª ZyXEL 2864I°¡ ÇϵíÀÌ modemÀÌ host¿¡ °É·ÁÁø Àüü¹øÈ£¸¦ signalÇؾ߸¸ Àǹ̰¡ ÀÖ´Â) °É·ÁÁø ¹øÈ£ÀÔ´Ï´Ù.

¿¹¸¦ µé¸é ISDNÀ» »ç¿ëÇÒ ¶§ 12345¿¡¼­ 56789·Î °Ç ÀüÈ­°¡ ttyS3·Î ¿ÔÀ¸¸é ´ÙÀ½°ú °°ÀÌ ¾î¶² programÀ¸·Î ¿¬°áµË´Ï´Ù.

        
check.cnd ttyS3 12345 '' 0 56789 

±× programÀº ÀüÈ­¸¦ ¹Þ¾ÆµéÀÏ Áö °áÁ¤ÇÒ °ªÀ» ¹ÝȯÇϴµ¥, ÀϹÝÀûÀ¸·Î ´ÙÀ½ÀÇ °ªµéÀÌ Á¤ÀǵǾî ÀÖ½À´Ï´Ù.

        0 - accept call, no specific preferences 
        1 - reject call                          

Àå·¡ÀÇ version¿¡¼­´Â mgetty/vgetty°¡ ÀüÈ­¸¦ ¹Þµµ·Ï µÇ¾î ÀÖ´Â ¹æ½Ä(data/voice/fax/...)À» ¿ÜÀûÀ¸·Î ¼±ÅÃÇϵµ·Ï ÇÏ°ÚÁö¸¸ ¾ÆÁ÷Àº ±¸ÇöµÇÁö ¾Ê¾Ò½À´Ï´Ù.

ÁÖÀÇ : ÀÌ°ÍÀº ÀüÈ­¸¦ ¹Þ¾ÆµéÀÏ °ÍÀΰ¡ ¾Æ´Ñ°¡¸¦ °áÁ¤ÇÏ´Â µ¥¿¡¸¸ ¾²ÀÌ´Â °ÍÀÌ ¾Æ´Õ´Ï´Ù. caller ID¸¦ X11 windowÇÏ¿¡¼­ ¿ÜºÎ LCD screen¿¡ Ç¥½ÃÇϵçÁö, ÀμâÇϰųª D-Channel CallbackÀ» ÇϵçÁö °£¿¡ Caller ID data¸¦ ÇÊ¿ä·Î ÇÏ´Â °ÍÀÌ¸é ¹«¾ùÀ̵çÁö ÇÒ ¼ö ÀÖ½À´Ï´Ù.

ÁÖÀÇ2 : ºÎ¸£´Â programÀÇ Æ¯¼º¿¡ Á¶½ÉÇϽʽÿÀ. user id 0 (root)·Î ½ÇÇàµÇ±â ¶§¹®¿¡ Á¶½ÉÇÏÁö ¾ÊÀ¸¸é security¿¡ À§ÇèÇÒ ¼öµµ ÀÖ½À´Ï´Ù.

2.9 Runtime configuration for mgetty: 'mgetty.config'

compileµÇ¾îÁø default¸¸À¸·Îµµ mgetty´Â ½â Àß µË´Ï´Ù. (±×°ÍÀº ¿À·§µ¿¾È À¯ÀÏÇÑ ¼³Á¤¹æ¹ýÀ̾ú½À´Ï´Ù.) ±×·¯³ª, ±×°ÍÀº À¶Å뼺ÀÌ ±×¸® ¸¹Áö ¾Ê°í, ƯÈ÷ ´Ù¸¥ modem typeÀ» ¾²°í ÀÖÀ¸¸é ¸Å¿ì ºÒÆíÇÕ´Ï´Ù. ¸í·ÉÇà optionÀ¸·Î built-in default¸¦ ¹Ù²ãÁÙ ¼ö´Â ÀÖÁö¸¸, ÀÌ ¹æ¹ýµµ /etc/inittabÀÇ ±âÀç»çÇ×À» ³Ê¹« ±æ°í Àб⠾î·Æ°Ô ¸¸µé±â ¶§¹®¿¡ ¿ÏÀüÇÏÁö´Â ¾Ê½À´Ï´Ù.

(policy.hÀÇ MGETTY_CONFIG·Î Á¤ÀǵÈ) config file support·Î compileµÇ¾ú´Ù¸é mgetty´Â Taylor UUCP¿Í ¸Å¿ì À¯»çÇÏ°Ô ¼³Á¤ fileÀ» »ç¿ëÇÏ¿© µ¿Àû¼³Á¤À» ¾ÆÁÖ ½±°Ô ÇÒ ¼ö ÀÖ½À´Ï´Ù.

config fileÀº º¸Åë /usr/local/etc/mgetty+sendfax¿¡ ÀÖ°í mgetty.config·Î µÇ¾î ÀÖ½À´Ï´Ù.

±× Çü½ÄÀº ¸Å¿ì ½±½À´Ï´Ù. ÁÙ¸¶´Ù keyword°¡ ÀÖ°í, °ø¹éÀ¸·Î ±¸ºÐµÈ Àμö°¡ ÀÖÀ» ¼ö ÀÖ½À´Ï´Ù. ºóÁÙ°ú (#·Î ½ÃÀ۵ǴÂ) comment lineµµ Çã¿ëµË´Ï´Ù.

config fileÀº port <tty-name> line¸¶´Ù ±¸ºÐµÈ portº° sectionÀ¸·Î ¹­¿©Á® ÀÖ½À´Ï´Ù. ù¹ø° port line Àü¿¡ ÀÖ´Â ¸ðµç »çÇ×Àº global default¸¦ ¸í½ÃÇÏ°í, µÎ port statementÀÇ »çÀÌ¿¡ ÀÖ´Â ¸ðµç »çÇ×Àº ¹Ù·Î µÚÀÌ¾î ¿À´Â device¿¡¸¸ À¯È¿ÇÑ ¼³Á¤À» ¸í½ÃÇÕ´Ï´Ù. Á¦°¡ º¸±â¸¦ µé°Ú½À´Ï´Ù.

         # global defaults:                     
         # fax station id is always the same    
         fax-id ++49-89-1234                    
         # per port stuff                       
         port tty1a                             
         # This modem can't fax                 
         modem-type data                        
                                                
         port tty2a                             
         # more verbose logging for this modem  
         debug 9                                

°¢ ÁÙÀÇ data ºÎºÐÀº (´ëºÎºÐÀÇ °æ¿ì) stringÀ̰ųª, (modem talkÀ» ¸í½ÃÇÏ´Â, whitespace·Î ±¸ºÐµÇ¾îÁö´Â ÀÏ·ÃÀÇ stringÀ¸·Î¼­ expect·Î ½ÃÀÛÇÏ°í send°¡ ¿À°í ´Ù½Ã expect¸¦ Àû´Â) chat sequenceÀ̰ųª, (leading characterÀÎ 1-9/O/Ox µî¿¡ µû¶ó¼­ 10Áø¼ö, 8Áø¼ö, ¶Ç´Â 16Áø¼ö µîÀ¸·Î Çؼ®µÇ´Â) Á¤¼öÀ̰ųª, (y(es)³ª t(rue), ±× ¹Ý´ëÀÎ n(o)³ª f(alse)ÀÎ) booleanÀÔ´Ï´Ù. boolean valueÀÌ¿Ü¿¡´Â Àμö¸¦ ¸í½ÃÇÏÁö ¾ÊÀ¸¸é (Çã¿ëµÈ´Ù¸é) 'value not set'·Î µÇ°Å³ª, (value°¡ Àǹ«»çÇ×À̸é) 'error'·Î µË´Ï´Ù. BooleanÀÇ °æ¿ì¿¡´Â 'true'·Î Çؼ®µË´Ï´Ù.

¸í·ÉÇà¿¡ ÀûÀ¸¸é ¼³Á¤Ç׸ñÀ» ¸¹ÀÌ ´ëüÇÒ ¼ö ÀÖ½À´Ï´Ù. ±× ¶§¿¡´Â ¸í·ÉÇàÀÇ optionÀÌ ¼³Á¤ fileÀÇ ¼³Á¤¿¡ ¿ì¼±ÇÕ´Ï´Ù. (±×¸®°í built-in defaultº¸´Ù ¿ì¼±ÇÕ´Ï´Ù.) º¸Åë built-in default´Â policy.h¿¡¼­ Á¤ÇØÁý´Ï´Ù.

°¡´ÉÇÑ ¼³Á¤Ç׸ñÀº ´ÙÀ½°ú °°½À´Ï´Ù. (¸í·ÉÇà optionÀÌ °¡´ÉÇÑ°ÍÀº bracket¿¡ ³ªÅ¸³Â½À´Ï´Ù.)

`speed' [-s] PORT SPEED

»ç¿ëÇÒ port speed¸¦ Á¤¼ö°ªÀ¸·Î ¸í½ÃÇÕ´Ï´Ù. Default´Â DEFAULT_PORTSPEEDÀÔ´Ï´Ù. ÁÖ¾îÁø speed°¡ À¯È¿ÇÏÁö ¾Ê´Ù¸é mgetty´Â ½ÉÇÏ°Ô ºÒÆòÇÏ°í Á¾·áÇÕ´Ï´Ù.

`switchbd' FAX RECV. SPEED

ÁÖ·Î Rockwell chipsetÀÌ ±×·¸Áö¸¸, ¾î¶² modemÀº fax mode·Î µÉ ¶§ 19200 bps·Î µ¹·ÁÁý´Ï´Ù. ´Ù¸¥ °ÍµéÀº ´Ù¸¥ speed·Î ¹Ù²ð ¼öµµ ÀÖ½À´Ï´Ù. (Á¦°¡ ¾Æ´Â ¹Ù´Â ¾ø½À´Ï´Ù.) modemÀÌ Rockwell ±â¹ÝÀÌ°í fax°¡ Àß ¼ö½ÅµÇÁö ¾ÊÀ¸¸é switchbd¸¦ 19200À¸·Î Çغ¸½Ê½Ã¿À. (Warning: ÀÌ°ÍÀÌ À߸ø Á¤ÇØÁö¸é fax ¼ö½ÅÀº Ʋ¸²¾øÀÌ ½ÇÆÐÇÕ´Ï´Ù. ´ëºÎºÐÀÇ Á¤»óÀûÀÎ modem¿¡´Â ÇÊ¿ä ¾ø½À´Ï´Ù.) Default´Â FAX_RECV_SWITCHBDÀÔ´Ï´Ù.

`direct' YES/NO [-r]

Direct lineÀ» »ç¿ëÇÒ °ÍÀ̶ó°í mgetty¿¡°Ô ¾Ë¸³´Ï´Ù. Mgetty´Â modemÀ» ÃʱâÈ­ÇÏÁö ¾ÊÀ¸¸ç, RINGÀ» ±â´Ù¸®Áöµµ ¾ÊÀ» °ÍÀÔ´Ï´Ù. ´Ù¸¸ character¸¦ ±â´Ù·Á¼­ issue file°ú login prompt¸¦ ³»º¸³À´Ï´Ù. nullmodem cableÀ¸·Î ¿¬°áÇÏ·Á¸é ÀÌ optionÀÌ ÇÊ¿äÇÕ´Ï´Ù. Mgetty´Â modem¿ëÀ¸·Î ¼³°èµÇ¾î¼­ default´Â noÀÔ´Ï´Ù.

`blocking' YES/NO [-b]

mgetty°¡ blocking mode·Î device¸¦ ¿­µµ·Ï ÇÕ´Ï´Ù. ÀÌ´Â carrier detect°¡ setµÇ±â±îÁö´Â open() system callÀº ÀÌ·ç¾îÁöÁö ¾ÊÀ½À» ¸»ÇÕ´Ï´Ù. ÀÌ°ÍÀº mgetty°¡ getty·Î callµÇ¸é setµË´Ï´Ù. ÀÌ ±â´ÉÀÌ ¾ó¸¶³ª À¯¿ëÇÒ Áö´Â ¸ð¸£°ÚÁö¸¸ ¿ÏÀüÈ÷ Çϱâ À§ÇØ Æ÷ÇÔ½ÃÄ×½À´Ï´Ù. Default´Â noÀÔ´Ï´Ù.

`port-owner' USERNAME/USERID

mgetty°¡ username¿¡ tty lineÀ» chownÇÏ°Ô ÇÕ´Ï´Ù. (stringÀ̳ª integer uid·Î ¸í½ÃÇÏ¿©¾ß Çϸç, À̶§ integer´Â À¯È¿ÇÑ ¼ö¿©¾ß ÇÕ´Ï´Ù.) ÀÌ°ÍÀº security¸ñÀû»ó °­·ÂÇÏ°Ô ±ÇÀåµË´Ù. modem lineÀ» ±×¸©µÇ°Ô »ç¿ëµÇÁö ¾ÊÀ¸·Á¸é ¿ÀÁ÷ ½Å·ÚÇÏ´Â »ç¿ëÀÚ¿¡°Ô¸¸ port access¸¦ ÁֽʽÿÀ. Default´Â PORT_OWNERÀÔ´Ï´Ù.

`port-owner' USERNAME/USERID

mgetty°¡ ÀÌ group id¿¡°Ô tty lineÀ» chgrpÇÏ°Ô ÇÕ´Ï´Ù. (group nameÀ̳ª integer gid·Î ÁÖ¾îÁú ¼ö ÀÖ½À´Ï´Ù.) ÁÖ¾îÁöÁö ¾Ê°Å³ª À¯È¿ÇÏÁö ¾ÊÀ¸¸é port ownerÀÇ primary group id°¡ »ç¿ëµË´Ï´Ù. Default´Â PORT_GROUPÀÔ´Ï´Ù.

`port-mode' PERMISSONS

device¸¦ chmodÇÒ permissionÀ» ¸í½ÃÇÕ´Ï´Ù. °áÄÚ modem device¸¦ Àü¹æÀ§Á¢±Ù°¡´ÉÇϵµ·Ï ÇÏÁö ¸¶½Ã°í 0660À̳ª ´õ ³ª¾Æ°¡¼­´Â 0600À» »ç¿ëÇØ¾ß ÁÁ½À´Ï´Ù. Default´Â PORT_MODEÀÔ´Ï´Ù.

`toggle-dtr' YES/NO

½ÃÀÛÇÒ¶§ modemÀ» resetÇϱâ À§Çؼ­ DTR lineÀ» lowerÇØ¾ß ÇÏ´ÂÁö¸¦ mgetty¿¡°Ô ¾Ë¸³´Ï´Ù. Default´Â yesÀÌÁö¸¸ ¾î¶² (¼Ò¼öÀÇ) modemµéÀº ¾Ë·¹¸£±â ¹ÝÀÀÀ» ÇÏ¿© crashµË´Ï´Ù.

`toggle-dtr-waittime' MSECS

DTR lineÀ» low·Î À¯ÁöÇÒ ½Ã°£À» ¸í½ÃÇÕ´Ï´Ù. Default´Â 500 millisecondÀÔ´Ï´Ù.

`data-only' YES/NO [-D]

mgetty°¡ modemÀÇ ¼º´ÉÁß¿¡¼­ data ºÎºÐ¸¸ ¾²µµ·Ï ÇÏ°í fax ºÎºÐÀº ¾²Áö ¾Êµµ·Ï ÇÕ´Ï´Ù. Default´Â falseÀÔ´Ï´Ù. modemÀÌ incoming fax¿Í dataÀÇ callÀ» ±¸ºÐÇÏÁö ¸øÇÒ °æ¿ì¿¡ À¯¿ëÇÕ´Ï´Ù.

`fax-only' YES/NO [-F]

mgetty°¡ fax Àü¿ë mode·Î µË´Ï´Ù. modemÀÌ incoming fax¿Í dataÀÇ callÀ» ±¸º°ÇÏÁö ¸øÇÏ°í, fax°¡ dataº¸´Ù ´õ Áß¿äÇÏ´Ù°í ÆÇ´ÜµÉ ¶§ À¯¿ëÇÕ´Ï´Ù. security ÀÌÀ¯·Î data callÀ» ¸ØÃß°í ½ÍÀ» ¶§¿¡µµ À¯¿ëÇÕ´Ï´Ù. (ÀÌ°ÍÀº login.config·Îµµ ÇÒ ¼ö ÀÖ½À´Ï´Ù.)

`modem-type' [-C] MTYPE

port¿¡ ¿¬°áµÈ modemÀÇ Á¾·ù¸¦ ¸í½ÃÇÕ´Ï´Ù. Default´Â DEFAULT_MODEMTYPEÀÔ´Ï´Ù. À¯È¿ÇÑ optionµéÀº ´ÙÀ½°ú °°½À´Ï´Ù.

auto

mgetty°¡ ¾Ë¾Æ¼­ modem typeÀ» ã¾Æ³À´Ï´Ù. (ÀÌ°ÍÀº °æ¿ì¿¡ µû¶ó¼­´Â ¹Ù¶÷Á÷ÇÏÁö ¾Ê°Å³ª ±¸½Ä modem¿¡¼­´Â ½ÇÆÐÇÒ Áöµµ ¸ð¸¨´Ï´Ù. Mgetty°¡ ATI ¸í·ÉÀ¸·Î modem typeÀ» ã¾Æ³»°í ±×¿¡ µû¸¥ Àû´çÇÑ fax class¸¦ ¼±Á¤ÇÕ´Ï´Ù. (¹ÌÈ®ÀÎ modem typeÀ̶ó¼­) ±×·¸°Ô ÇÒ ¼ö ¾øÀ» ¶§¿¡´Â class 2.0À» ¸ÕÀú Çغ¸°í, ±× ´ÙÀ½À¸·Î´Â class 2¸¦ ½ÃµµÇÕ´Ï´Ù.

c2.0

ModemÀÌ class 2.0 fax modeÀÔ´Ï´Ù. Class 2º¸´Ù ´õ ³ªÀº Ç¥ÁØÀÌ¶ó¼­ µÎ°³ ´Ù °¡´ÉÇϸé class 2.0ÀÌ ´õ Àß ÀÛµ¿µË´Ï´Ù. USR, ZyXEL 1496°ú 2864, ±×¸®°í ELSA µîÀÇ modem¿¡ Àû¿ëµÈ´Ù°í ¾Ë·ÁÁ³½À´Ï´Ù.

cls2

ModemÀÌ class 2 fax modemÀÌ°í mgetty´Â class 2.0À» ½ÃµµÇÏÁö ¾Ê½À´Ï´Ù.

c2.1

ModemÀÌ »õ·Î¿î ITU T.32 standard (class 2.1)¿¡ ºÎÇÕÇÕ´Ï´Ù. Á¦°¡ ¾Ë±â·Î´Â ¾ÆÁ÷±îÁö ¿©±â¿¡ ¸Â´Â modemÀº ¾øÁö¸¸, class 2.1Àº class 2.0°ú Èí»çÇϹǷΠ½±°Ô Áö¿øÇÒ ¼ö ÀÖÀ» °Ì´Ï´Ù.

cls1

ModemÀº class 1 fax¸¸ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¾ÆÁ÷ ±¸ÇöµÇÁö ¾Ê¾Ò½À´Ï´Ù. (°Ô´Ù°¡ Á¶±Ýµµ ±ÇÀåÇÏÁö ¾Ê½À´Ï´Ù.)

c1.0

ModemÀÌ ITU T.31 standard¿¡ ¸Â´Â class 1 fax¸¦ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ°ÍÀº class 1º¸´Ù ¸¹ÀÌ ÁÁÁö´Â ¾ÊÁö¸¸ (°¡´ÉÇϸé class 2³ª 2.0À» ¾²½Ê½Ã¿À.), ¾î·µç ´õ ÁÁÀº °Ì´Ï´Ù. ¾ÆÁ÷ ±¸ÇöµÇÁö ¾Ê¾Ò½À´Ï´Ù.

cls2ok

(´õÀÌ»ó ¾²ÀÌÁö ¾Ê½À´Ï´Ù. modem-quirks 02¸¦ »ç¿ëÇϽʽÿÀ)

data

'-D'¿Í °°¾Æ¼­ fax ÃʱâÈ­¸¦ ÇÏÁö ¾Ê½À´Ï´Ù.

(¾ÆÁ÷±îÁö´Â) ÀÌ optionÀ¸·Î mgetty°¡ fax mode¸¸ ÇÏ°í data callÀ» °ÅºÎÇϵµ·Ï ÇÒ ¼ö´Â ¾øÀ¸´Ï²¿ fax-only true statementÀ» »ç¿ëÅä·Ï ÇϽʽÿÀ.

`modem-quirks' BITMASK

¾î¶² ¸ðµ©Àº fax standard¸¦ ƯÀÌÇÏ°Ô Çؼ®ÇÕ´Ï´Ù.. mgetty+sendfaxÀÇ ³»ºÎ ÀÛµ¿Áß¿¡´Â ±×·± modem¿¡ Àû¿ëµÇ´Â °ÍÀÔ´Ï´Ù. Àμö´Â fax_lib.h¿¡ ÀÖ´Â °ª¿¡¼­ Á¶¼ºµÈ °ÍÀ¸·Î¼­ quirk´ç ÇÑ bitÀÔ´Ï´Ù. ÀÌ°ÍÀ» ¾²´Â modemÀÌ ÀÖ´Ù¸é ±×°ÍÀº ÀÚµ¿ÀûÀ¸·Î °ËÃâµÇ¾î¼­ Àû´çÇÏ°Ô Ã³¸®µÇ±â ¶§¹®¿¡ ÀÌ optionÀ» ¾µ ÀÏÀº °ÅÀÇ ¾øÀ» °ÍÀÔ´Ï´Ù.

Áö±ÝÀ¸·Î¼­´Â ´ÙÀ½°ú °°ÀÌ quirk°¡ Á¤ÀǵǾî ÀÖ½À´Ï´Ù.

        0x01  leave the modem in class 2 mode instead of switching      
              to class 0 before sending ATA (you might try this if      
              adaptive fax/data answer doesn't work).                   
        0x02  class 2 bit order is correct (MultiTech) - unimplemented  
        0x04  do not trust +FPTS:x,lc,blc values                        
        0x08  do not wait for XON character when sending pages          
        0x20  old USR Courier V.32 AT+FCC/+FMINSP bug workaround        

`init-chat' [-m] EXPECT SEND EXPECT SEND ...

mgetty¿¡°Ô modemÀ» initializingÇϵµ·Ï chat sequence¸¦ ¾Ë·ÁÁÝ´Ï´Ù. ÁÖÀÇ : ±× sequence´Â expect·Î ½ÃÀÛÇϴµ¥ ´ëºÎºÐÀÇ °æ¿ì¿¡ '""' (nothing)ÀÔ´Ï´Ù. UUCP°¡ ÀÌ·±½ÄÀ¸·Î ÇÏ°í Àúµµ È¥¶õÀ» ÀÏÀ¸Å°Áö ¾ÊÀ¸·Á°í ¼ø¼­¸¦ ÀÌ·¸°Ô Á¤Çß½À´Ï´Ù.

        º¸±â : 

           init-chat "" ATQ0E1V1H0 OK ATL0M0S0=0 OK AT&K3 OK

`force-init-chat' EXPECT SEND EXPECT SEND ...

modemÀÌ °£´ÜÇÑ AT ¸í·É¿¡µµ ¹ÝÀÀÇÏÁö ¾Ê´Â mode¿¡¼­ ±³ÂøµÇ´Â ¶§µµ ÀÖ½À´Ï´Ù. ÀÌ°ÍÀº º¸Åë modemÀÌ DTR dropÀ» ¹«½ÃÇϵµ·Ï ¼³Á¤µÇ¾î ÀÖÀ¸¸é¼­ ¾ÆÁ÷ »ó´ë¹æÀ¸·Î data ¿¬°áÀÌ µÇ¾îÀֱ⠶§¹®¿¡ ¹ß»ýÇÕ´Ï´Ù. voice modemÀ» »ç¿ëÇÑ´Ù¸é voice mode¿¡¼­ ±³ÂøµÉ ¼ö°¡ ÀÖ½À´Ï´Ù.

ÀÌ·¯ÇÑ »óȲ¿¡¼­´Â modemÀÌ Àû´çÇÑ response¸¦ µ¹·Áº¸³»Áö ¾Ê±â ¶§¹®¿¡ Á¤»óÀûÀÎ init-chatÀº time-outÀÌ µË´Ï´Ù.

force-init-chat chat sequence¸¦ ½á¼­ modemÀ» Á¤»óÀûÀÎ »óÅ·Πµ¹¸± ¼ö°¡ ÀÖ½À´Ï´Ù. default ¼³Á¤¿¡¼­´Â DLE ETX character¸¦ º¸³»¼­ voice modemÀ» »ì¸®°í (pause)+++(pause)ATH0 sequence¸¦ º¸³»¼­ modemÀ» data mode¿¡¼­ command mode·Î µ¹·Á ³õ½À´Ï´Ù.

ÀÌ sequence¸¦ (¾Æ¹« ºÒÆí ¾øÀÌ) init-chatÀÇ ¾ÕºÎºÐ¿¡ ºÙÀÏ ¼öµµ ÀÖ½À´Ï´Ù¸¸ '+++'ÀÇ ¾ÕµÚ¿¡ ÀÖ´Â pause¶§¹®¿¡ ¸Å¿ì ´Ê¾îÁý´Ï´Ù. .

@minus ????????

¾î¶² ¸ðµ©Àº initializingÇϸ鼭 data mode¿¡¼­ fax mode·Î ¾Æ´Ï¸é ±× ¹Ý´ë·Î µÉ ¶§ ºÎºÐÀûÀÎ ¼³Á¤ÀÌ ¹«½ÃµÇ´Â °æ¿ìµµ ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¸é, USR modelÁß¿¡´Â 'Caller ID delivery' (AT#CID=1) ¼³Á¤ÀÌ ¹«½ÃµÇ±â ¶§¹®¿¡, ELSA modemÁß¿¡´Â voice mode¿¡¼­ data mode·Î ¹Ù²ð ¶§ ÇöÀçÀÇ DTE port speed°¡ ¹«½ÃµÇ±â ¶§¹®¿¡, RING message¸¦ Ʋ¸° baud rate¿Í ÇÔ²² ³»º¸³»°Ô ÇÕ´Ï´Ù.

ÀÌ·± modemµéÀº ÀÌ ¸í·ÉÀ» ½á¼­ fax¿Í voiceÀÇ initializingÀÌ ¸ðµÎ µÈ ´ÙÀ½¿¡ AT command°¡ ½ÇÇàµÇµµ·Ï ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÇÏÁö¸¸ Á¶½ÉÇϽʽÿÀ! ¸¸¾à À̶§¿¡ ATZ (modem reset)À̳ª ±× ºñ½ÁÇÑ °ÍÀ» ¾²¸é fax/voice ¼³Á¤ ¸ðµÎ°¡ Áö¿öÁý´Ï´Ù.

`MODEM-check-time' SECONDS

¼Ò¸®µµ ¾øÀÌ ¹«³ÊÁ® ³»¸®°í´Â ÇÏ´Â modemµµ ÀÖ½À´Ï´Ù. ÀÌ optionÀ» ÁÖ¸é mgetty´Â modemÀÌ ¾ÆÁ÷µµ ¹ÝÀÀÇÏ´Â Áö¸¦ °£´ÜÇÑ 'AT...OK' sequence·Î ¸Å ¼öÃʸ¶´Ù °Ë»çÇÕ´Ï´Ù. ¹ÝÀÀÇÏÁö ¾ÊÀ¸¸é mgetty´Â Àç°¡µ¿ÇÏ°í Àüü modem resetÀ» ÇÕ´Ï´Ù. Default´Â MODEM_CHECK_TIMEÀÔ´Ï´Ù.

`rings' [-n] NNN

mgetty°¡ ÀüÈ­¸¦ ¹Þ±â±îÁö ±â´Ù·Á¾ß ÇÒ RING message ¼ö¸¦ Á¤ÇÕ´Ï´Ù. Default´Â 1ÀÔ´Ï´Ù. ÁÖÀÇ: ¹«½¼ ÀÌÀ¯·ÎµçÁö modemÀÌ ÀÚµ¿À¸·Î ÀüÈ­¸¦ ¹ÞÀ¸¸é ATS0=mmmÀ¸·Î ¼³Á¤ÇÑ °ª°ú´Â ´Ù¸¥ °ÍÀ¸·Î ¼³Á¤ÇϽʽÿÀ. ±×·¸°Ô ÇÏÁö ¾ÊÀ¸¸é modemÀÇ ÀÚµ¿ÀüÈ­¹Þ±â¿Í mgettyÀÇ ¼öµ¿ÀüÈ­¹Þ±â°¡ Ãæµ¹ÇÕ´Ï´Ù. (´ëºÎºÐÀÇ modemÀº ÀÚµ¿ÀüÈ­¹Þ±â¸¦ ÇÏ´Â Áß¿¡ ¸í·ÉÀÌ µé¾î¿À¸é ÀüÈ­¸¦ ³»·Á³õ½À´Ï´Ù.)

@minus????????????????????????????

ISDN modemÀÌ ÀüÈ­°Ç »ó´ë¹æÀÇ ¹øÈ£ (MSN)À» host·Î signalÇØÁÙ ¼ö ÀÖ´Ù¸é ÀÌ optionÀ¸·Î ±× MSNÀ» Ưº°È÷ ÁöÁ¤µÈ RING¿¡ ºÙÀÏ ¼ö ÀÖ½À´Ï´Ù. ±× MSNÀº list¿Í ºñ±³µÇ¾î¼­ ù¹ø°·Î ¸Â´Â °ÍÀÌ Æ¯º°È÷ ÁöÁ¤µÈ RING ¹øÈ£·Î »ç¿ëµË´Ï´Ù.. ¿ÞÂÊ¿¡¼­ ¿À¸¥ÂÊÀ¸·Î list¸¦ Á¶»çÇÕ´Ï´Ù.

ÀÌ°ÍÀº ELSA¿Í ZyXELÀÇ ISDN terminal adaptor¿¡¼­ ÀÛµ¿ÇÑ´Ù°í ¾Ë·ÁÁ® ÀÖ½À´Ï´Ù.

`get-cnd-chat' CHAT SEQUENCE

ÀÌ°ÍÀº modemÀÌ 'Caller ID' ã¾Æ³»±â¸¦ Áö¿øÇÏÁö¸¸ Ư¼öÇÑ ¸í·ÉÀ» ÁÖ¾î¾ß CID informationÀ» ¾òÀ» ¶§ ÇÊ¿äÇÕ´Ï´Ù. Áö±ÝÀº ÀϺΠELINK ISDN adaptors (Elink-ISDN section ÀáÁ¶)¿¡¸¸ ÇÊ¿äÇÏ°í, ´Ù¸¥ ´ëºÎºÐÀÇ CID°¡´É modemµéÀº ¾Ë¾Æ¼­ CID¸¥ º¸³»±â¶§¹®¿¡ ÀÌ°ÍÀÌ ÇÊ¿ä¾ø½À´Ï´Ù.

ringÀ» 2 ÀÌ»óÀ¸·Î ¼³Á¤ÇϽʽÿÀ. ±×·¸Áö ¾ÊÀ¸¸é CID¾ò±â code°¡ ÀÛµ¿µÇÁö ¾Ê½À´Ï´Ù.

@minus ?????????????

incoming callÀ» ¹Þ±âÀü¿¡ °¡µ¿ÇÒ programÀ» ¸í½ÃÇÕ´Ï´Ù. (polich.hÀÇ) CNDFILEÀ̼­ Á¤Àû Caller ID selectionÀÌ ÃæºÐÄ¡ ¾Ê°Å³ª Caller ID data¸¦ ´Ù¸¥ ¸ñÀû(¿¹¸¦ µé¸é displaying)À¸·Î ¾²·Á¸é ÀÌ°ÍÀ» »ç¿ëÇϽʽÿÀ. Caller-ID section ÂüÁ¶.

`answer-chat' CHAT SEQUENCE

ÀÌ°ÍÀº ÀüÈ­¸¦ ¹ÞÀ¸·Á°í ¾²´Â ¸í·É sequenceÀÔ´Ï´Ù. º¸Åë defaultÀÎ '"" ATA CONNECT \c \r '·Î ÇÏ¸é µÇÁö¸¸ (ATA°¡ Çã¿ëµÇÁö ¾Ê±â ¶§¹®¿¡) `ATA' ´ë½Å¿¡ `ATS0=1'À¸·Î ÇؾßÇÏ´Â modemµµ ÀÖ½À´Ï´Ù. ¿©ºÐÀÇ '\r' expect stringÀ» ÁÖ¾î¾ß code°¡ Àüü CONNECT xyz\r stringÀ» ÀâÀ» ¼ö ÀÖ½À´Ï´Ù. \rÀÌ ¾ø¾îµµ ÀÛµ¿Àº µÇÁö¸¸ logging informationÀÌ ÀÚ¼¼ÇÏÁö ¾ÊÀ» °ÍÀÔ´Ï´Ù. Áö±ÝÀº \rÀÌ ±¸ÇöµÇÁö ¾Ê¾ÒÀ¸¹Ç·Î ÀÛµ¿ÇÏÁö ¾Ê½À´Ï´Ù. ¾²Áö ¸¶½Ê½Ã¿À.

`answer-chat-timeout' SECS

anser-chatµ¿¾È¿¡´Â ¿©±â¿¡¼­ ¸í½ÃÇÑ ½Ã°£³»¿¡ expect stringÀÌ º¸¿©Á®¾ß ÇÕ´Ï´Ù. Default´Â 80ÃÊÀÔ´Ï´Ù. ÀÌ ½Ã°£Àº ATS7=...ÀÇ modem ¼³Á¤¸í·ÉÀ¸·Î Á¤ÇÑ ½Ã°£º¸´Ù Àû¾îµµ 5ÃÊÁ¤µµ ´õ ±æ¾î¾ß ÇÕ´Ï´Ù.

`autobauding' YES/NO [-a]

¾î¶² modemÀº ¿¬°áÈÄ¿¡ DTE line speed¸¦ Åë½Å¼± speed·Î ÀüȯÇÕ´Ï´Ù. ¿¹¸¦ µé¸é 'CONNECT 2400'À» º¸³½ ´ÙÀ½¿¡ modemÀº 2400 bps·Î ÀüȯÇÕ´Ï´Ù. »õ modemÀº º¸Åë DTE baud rate¸¦ lockÇÏ´Â switch°¡ Àִµ¥ ÀÌ°ÍÀ» °­·ÂÈ÷ ±ÇÀåÇÕ´Ï´Ù. modemÀÌ ÀÚ²Ù ÀÌ speed switch¸¦ ÇÒ ¶§ autobaudingÀ» true·Î ¼³Á¤Çϸé mgetty´Â °Å±â¿¡ µû¸¦ °ÍÀÔ´Ï´Ù.

`ringback' YES/NO [-R]

modem°ú ÀüÈ­¸¦ °°Àº ¼±¿¡¼­ »ç¿ëÇؾ߸¸ ÇÒ ¶§ ringbackÀ̳ª ring-twice¸¦ ÀÌ¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. mgetty´Â ù¹ø°´Â ÀüÈ­¸¦ ¹ÞÁö´Â ¾Ê°í ±â¾ïÇÏ°í ÀÖ´Ù°¡, (ringback-timeÀ¸·Î ¸í½ÃµÈ ½Ã°£³»¿¡ ´Ù½Ã °É·Á¿À´Â) µÎ¹ø° ÀüÈ­¸¦ ¹Þ½À´Ï´Ù.

`ringback-time' SECS

ringbackÀÌ È°¼ºÈ­µÇ¾î ÀÖ´Ù¸é ù¹ø°¿Í µÎ¹ø° ÀüÈ­ÀÇ °æ°ú½Ã°£À» ¸í½ÃÇÕ´Ï´Ù. Default´Â 30ÃÊÀÔ´Ï´Ù.

`ignore-carrier'

modemÀÌ DCD (carrier detect) lineÀ» Ç¥½ÃÇÏÁö ¾Ê°Å³ª, serial port³ª cable ¶Ç´Â serial driver°¡ ¸Á°¡Á³À¸¸é CONNECT±îÁö´Â ÀßµÅ°í ³ª¼­ mgetty³ª loginÀÌ blockÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù. (À̶§ ¸ðµç °ÍÀÌ Àß ÀÛµ¿ÇÏ´Ù°¡ °©ÀÚ±â port·Î ´õÀÌ»ó ¾Æ¹«°Íµµ º¸³»ÁöÁö ¾Ê°Ô µË´Ï´Ù.) operating system¿¡ µû¶ó¼­ '/etc/issue'¸¦ printÇϱâÀüÀ̰ųª 'password:' prompt´ÙÀ½ÀÏ ¼ö ÀÖ½À´Ï´Ù. ÀÌ°ÍÀ» Ç®·Á¸é ignore-carrier¸¦ true·Î ¼³Á¤ÇÏ¿© carrier detectionÀÇ switch¸¦ ²ô½Ê½Ã¿À. Default´Â falseÀÔ´Ï´Ù. ÁÖÀÇ: ÀÌ·¸°Ô Çϸé ÀüÈ­ÇÑ »ç¶÷ÀÌ ±ú²ýÀÌ logging outÇÏÁö ¾Ê°í ±×Àú ÀüÈ­¸¦ ²÷À¸¸é systemÀº ±×°ÍÀ» ¾Ë¾ÆäÁö ¸øÇÏ°Ô µË´Ï´Ù. ÀÌ°ÍÀº modemÀ» hangingÇÏ°Ô ¸¸µå´Â µîÀÇ °á°ú°¡ µÇ°Ô ÇÕ´Ï´Ù.

`issue-file' [-i] FILE

ÀÌ°ÍÀº login prompt¿¡ ¾Õ¼­¼­ printµÇ´Â fileÀÔ´Ï´Ù. Default´Â '/etc/issue'ÀÔ´Ï´Ù. connect speed, date µîµîÀ¸·Î Ưº°ÇÑ character¸¦ ´ëüÇÒ ¼ö ÀÖ½À´Ï´Ù. ¹Ø¿¡ ÀÖ´Â (login-prompt) list¸¦ º¸½Ê½Ã¿À.

`prompt-waittime' MSECS

ÀÌ°ÍÀº isuue file°ú login prompt¸¦ printÇϱâ Àü¿¡ modem°ú ¼±ÀÌ Á¶Á¤µÉ ¶§±îÁö ±â´Ù¸± ½Ã°£À» ¸í½ÃÇÕ´Ï´Ù. Default´Â 500 millisecondÀÔ´Ï´Ù.

`login-prompt' [-p] PROMPT

ÀÌ°ÍÀº mgetty°¡ ³»º¸³¾ login prompt¸¦ °æ½ÃÇÕ´Ï´Ù. ÀÌ string(°ú issue file)¿¡ Àִ Ưº°ÇÑ characterµéÀÌ ÀÎ½ÄµÇ¸é ´Ù¸¥ °ÍÀ¸·Î ±³Ã¼µË´Ï´Ù.

login promptÀÇ ÃÖ´ë±æÀÌ´Â (È®ÀåÈÄÀÇ) 140 character·Î Á¦Çѵ˴ϴÙ.

`login-time' SECS

»ç¿ëÀÚ°¡ log inÇÒ ¼ö ÀÖ´Â ÃÖ´ë ½Ã°£ÀÔ´Ï´Ù. ±× ½Ã°£³»¿¡ loginÀÌ ÀÌ·ç¾îÁöÁö ¾ÊÀ¸¸é mgetty´Â ÀüÈ­¸¦ ²÷½À´Ï´Ù. Default´Â policy.h¿¡ ÀÖ´Â MAX_LOGIN_TIMEÀÔ´Ï´Ù.

`fido-send-emsi' YES/NO

ÀÌ°ÍÀº mgetty°¡ -DFIDO·Î compileµÆÀ» ¶§¹® À¯È¿ÇÕ´Ï´Ù. mgetty°¡ loginÀ» promptÇϱâ Àü¿¡ FidoNET style ``EMSI_REQA77E'' packetÀ» º¸³»¾ß ÇÏ´Â Áö¸¦ ÅëÁ¦ÇÕ´Ï´Ù. Default´Â onÀÔ´Ï´Ù. FIDO Áö¿øÀ¸·Î compileÇ߾ PPP client (¶Ç´Â »ç¿ëÀÚ)°¡ ±× string¶§¹®¿¡ È¥¶õ½º·¯¿ö ÇÏ´Â ¹®Á¦¸¦ °æÇèÇϽŴٸé ÀÌ°ÍÀ» ²ô½Ê½Ã¿À.

`fax-id' [-I] LOCAL FAX NUMBER

ÀÌ°ÍÀº fax mode¿¡¼­ ÀüÈ­°Ç »ó´ë¹æ¿¡°Ô ¾Ë¸± fax station ID¸¦ Á¤ÇÕ´Ï´Ù. (º¸Åë fax ÀüÈ­¹øÈ£ÀÔ´Ï´Ù.) Default´Â FAX_STATION_IDÀÔ´Ï´Ù.

`fax-server-file' [-S] POLL CONTROL FILE

ÀÌ°ÍÀº ´©±º°¡ fax polling mode·Î ÀüÈ­ÇØ¿ÔÀ» ¶§ »ó´ë¹æÀÌ ¹ÞÀ» ¹®¼­ÀÎ fax fileÀÔ´Ï´Ù.

º¸Åë ±× fileÀº text file·Î¼­ ÀüÇÏÇÑ »ó´ë¹æ machineÀ¸·Î º¸³¾ G3 fileÀ» ÇÑ ÁÙ¿¡ ÇÑ °³¾¿ Àû½À´Ï´Ù. Comment lineÀº (#·Î ½ÃÀÛÇϴµ¥) ¹«½ÃµË´Ï´Ù. ÈÄÁøÀÏ°ü¼ºÀ» À§Çؼ­ mgetty´Â ÀÌ fileÀÚü°¡ G3 fileÀÎÁö °Ë»çÇؼ­ ±×·¸´Ù¸é ÀÌ fileÀ» º¸³À´Ï´Ù. (À̶§´Â ÇÑ page¸¸ º¸³¾ ¼ö ÀÖ½À´Ï´Ù.)

¸ðµç modemÀÌ fax poll server mode¸¦ Áö¿øÇÏÁö´Â ¾Ê½À´Ï´Ù. ZyXEL°ú MultiTech´Â Áö¿øÇÏ°í USRÀº ±×·¸Áö ¾Ê´Ù°í ¾Ë°í ÀÖ½À´Ï´Ù.

`diskspace' [-k] KBYTES

ÀÌ°ÍÀº fax ¼ö½ÅÀ» Çã¶ôÇÒ ¿ëµµ·Î fax spool directory¿¡¼­ ¾µ ¼ö ÀÖ´Â disk spaceÀÇ ÃÖ¼Ò·®À» mgetty¿¡°Ô ¾Ë¸³´Ï´Ù. Default´Â 1 MbyteÀÔ´Ï´Ù.

`notify' MAIL ADDRESS

ÀÌ°ÍÀº fax°¡ ¼ö½ÅµÇ¾úÀ» ¶§ mailÀ» ¹ÞÀ» ÁÖ¼ÒÀÔ´Ï´Ù. ÃæºÐÈ÷ ½ÃÇèµÇÁö ¾Ê¾Ò½À´Ï´Ù.

`fax-owner' USERNAME/UID

`fax-group' GROUPNAME/GID

`fax-mode' PERMS

ÀÌ°ÍÀº port-owner/group/mode¿Í ºñ½ÁÇؼ­ fax°¡ µé¾î¿Ã ¶§ mgetty°¡ ¾²±â À§Çؼ­ owner, group, ±×¸®°í file mode¸¦ ¸í½ÃÇÕ´Ï´Ù. Default´Â FAX_IN_OWNER, FAX_IN_GROUP, and FAX_FILE_MODE¿¡¼­ ¾ò¾îÁý´Ï´Ù.

`debug' [-x] DEBUG LEVEL

ÀÌ°ÍÀº mgetty°¡ ÇÒ logging·®À» Á¤ÇÕ´Ï´Ù. 4´Â Àû´çÇÏ°í 5´Â ÀÚ¼¼ÇÏ°í 9´Â Á¤¸»ÀÌÁö ÁöÀúºÐÇÕ´Ï´Ù. ½ÃÇèÇغ¸½Ê½Ã¿À! log data´Â 'policy.h'ÀÇ LOG_PATH·Î ¸í½ÃÇϴµ¥ ´ë°³ `/var/log/mgetty.ttyxx'ÀÔ´Ï´Ù.

`gettydefs' GD TAG

ÀÌ°ÍÀº mgettyÀÇ gettydefs feature¸¦ ¾´´Ù¸é, ±ÇÀåÇÏÁö ¾Ê½À´Ï´Ù¸¸, ÁÖ¾îÁø line¿¡ »ç¿ëÇÒ gettydefs tagÀ» ¸í½ÃÇÕ´Ï´Ù. gettydefs manpage, mgettydefs manpage¸¦ ÂüÁ¶ÇϽʽÿÀ.

`term' TERMINAL TYPE

ÀÌ°ÍÀº TERM=xxx terminal type variableÀ» getty°¡ Á¤Çϵµ·Ï ÇÏ´Â Linux ¶Ç´Â ÀÌ¿Í ºñ½ÁÇÑ OS¿¡¼­ (¿¹¸¦µé¸é '/etc/profile ¶Ç´Â '$HOME/.profile'¿¡¼­) ±×°ÍÀ» Á¤ÇÏÁö ¾Ê¾ÒÀ¸¸é mgetty·Î ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. 'term vt100'°ú °°ÀÌ ÀûÀ¸½Ê½Ã¿À. Á¦°¡ º¼¶§´Â per line base¿¡¼­ terminal typeÀ» ¸í½ÃÇÏ´Â °ÍÀº ÁÁÁö ¾Ê½À´Ï´Ù. (ÀüÈ­°Å´Â »ç¶÷µé¸¶´Ù ´Ù¸¥ terminal typeÀ» ¾´´Ù¸é ¾î¼½Ã°Ú½À´Ï±î?) ±×·¡¼­ default´Â Á¤ÇØÁöÁö ¾Ê¾Ò½À´Ï´Ù.


´ÙÀ½ ÀÌÀü Â÷·Ê