Àú´Â ¿©·¯ºÐ¿¡°Ô ¼³Ä¡½Ã¿¡ Æ÷ÇԵǾîÀִ ȯ°æÈÀÏÀ» ±ÇÇص帳´Ï´Ù. ÆÄÀϵéÀº ¹®¼¿¡ Æ÷ÇԵǾîÀÖ½À´Ï´Ù.
ÀÌ ÆÄÀÏÀ» uucp±âº» µð·ºÅ丮 Áï Çö linuxÁ¦Ç°Àº /etc/uucp¿¡ ÀÌÀü ¹öÁ¯Àº /usr/lib/uucp¿¡ À§Ä¡½ÃÅ°¼¼¿ä. ±×·±´ÙÀ½ °¢ ÆÄÀÏÀÇ Çã¿ë°ª(permissions)À» È®ÀÎÇϼ¼¿ä.
(guylhem@barberouge:uucp)$ ls -l total 11 -rw-r--r-- 1 uucp uucp 501 Jan 23 11:33 Poll -rw-r----- 1 uucp uucp 589 Jan 23 11:34 call -rw-r----- 1 uucp uucp 1184 Jan 23 12:06 config -rw-r----- 1 uucp uucp 476 Jan 23 12:31 crontab -rw-r----- 1 uucp uucp 1256 Jan 23 11:47 dial -rw-r----- 1 uucp uucp 486 Jan 23 11:48 passwd -rw-r----- 1 uucp uucp 810 Jan 23 11:55 port -rw-r--r-- 1 uucp uucp 1690 Jan 23 12:04 sys (guylhem@barberouge:uucp)$ ÆÄÀÏÀÇ ¼ÒÀ¯ÁÖ¸¦ ´ÙÀ½°ú °°ÀÌ º¯°æ½ÃÅ°¼¼¿ä. (root@barberouge:uucp)$ chown uucp.uucp * ±×·±´ÙÀ½ ´Ù½ÃÇѹø ÆÄÀÏÀÇ Çã¿ë°ª(permissions)À» º¯°æ½ÃÅ°¼¼¿ä. (root@barberouge:uucp)# chmod 640 * (root@barberouge:uucp)# chmod +r Poll sys
ÀÌ ÆÄÀÏÀº ½Ã½ºÅÛÀÇ polling timetablesÀ» ¼³Á¤Çϴµ¥ »ç¿ëµË´Ï´Ù.
schedule polux 01 poll polux 01Á¦ ±â°è´Â 01:00¿¡ polux¸¦ È£ÃâÇÕ´Ï´Ù. ÀÌ ±â´ÉÀÌ ´ÙÀÔ´Ï´Ù. ¿©·¯ºÐÀÌ ¸¸¾à ¸¹Àº ´Ù¸¥ ±â°èµéÀ» È£ÃâÇؾßÇÑ´Ù¸é ´Ù¸¥ ¸í·ÉµéÀ» ´õ Âü°¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·¯³ª °¢ ¸í·É¿¡ ´ÙÀ½ µÎÁÙ(schedue & poll)Àº ÀØÁö¸»°í ¾²¼Å¾ß ÇÕ´Ï ´Ù.
ÀÌ ÆÄÀÏÀº ¿©·¯ºÐÀÌ ¼Û½Å(poll)ÇÏ´Â ¸ðµç ½Ã½ºÅÛ¸¶´Ù login/passwdÈÀÏÀ» Æ÷ÇÔÇÕ ´Ï´Ù.
polux uudan passwordÁ¦ ±â°è´Â "polux"¸¦ ¼Û½Å(poll)ÇÒ ¶§ loginÀ¸·Î "uudan" ±×¸®°í password·Î "password"¸¦ »ç¿ëÇÕ´Ï´Ù :-) PollÀº ¿©·¯ºÐÀÇ È¯°æ¿¡ ¸Â°Ô Àû¿ë½Ãŵ´Ï´Ù.
nodename barberouge # The UUCP name of this system spool /var/spool/uucp # The UUCP spool directory pubdir /var/spool/uucppublic # The UUCP public directory logfile /var/log/uucp/log # The UUCP log file statfile /var/log/uucp/stats # The UUCP statistics file debugfile /var/log/uucp/debug # The UUCP debugging file #sysfile /etc/uucp/sys # Default "sys" #portfile /etc/uucp/port # Default "port" #dialfile /etc/uucp/dial # Default "dial" #dialcodefile /etc/uucp/dialcode # Default "dialcode" #callfile /etc/uucp/call # Default "call" #passwdfile /etc/uucp/passwd # Default "passwd" # No commands may be executed by unknowns (empty list of permitted commands) # Upload is authorized in /var/spool/uucp unknown commands unknown pubdir /var/spool/uucp unknown remote-send ~ !~/upload unknown remote-receive ~/uploadÀ§¿¡¼ "barberouge"·ê ¿©·¯ºÐÀÇ ½Ã½ºÅÛÀ̸§À¸·Î ¹Ù²Ù¸é µË´Ï´Ù. ¸¸¾à ½Ã½ºÅÛÀ̸§À» ¸ð¸£½Ã¸é "hostname"¸¦ ½ÇÇàÇϸé À̸§À» È®ÀÎÇÏ½Ç ¼ö ÀÖ½À ´Ï´Ù.
# Every day just before morning generate reports. # 0 7 * * * /usr/lib/uucp/uudemon.day root # # Every hour start the uudemon.hr. To actually poll a remote system, # enter its name in /etc/uucp/Poll. You are encouraged to change the "8". # 8 * * * * /usr/lib/uucp/uudemon.hr crontab ÆÄÀÏ¿¡ ÷°¡Çϱâ À§ÇÏ¿© ´ÙÀ½À» ½ÇÇà»çÅ°¸é µË´Ï´Ù. "crontab -u uucp /etc/uucp/crontab"
# 1) expect nothing (i.e., continue with step 2) # 2) send "ATZ", then a carriage return, then sleep for 1 to 2 seconds. # The \c means to not send a final carriage return. # 3) wait until the modem echoes "OK", then do the the same for "ATX4" & "OK" # 4) send "ATDT", then the telephone number (after translating any dialcodes). # 5) wait until the modem echoes "CONNECT" # 6) if we get "BUSY", "NO CARRIER" ... during the chat script we abort dialing # 7) when the call is over, we make sure we hangup the modem dialer hayes chat "" ATZ\r\d\c OK\r \dATX4\r\d\c OK\r ATDT\D CONNECT chat-fail RING chat-fail NO\sCARRIER chat-fail ERROR chat-fail NO\sDIALTONE chat-fail BUSY chat-fail NO\sANSWER chat-fail VOICE complete \d\d+++\d\dATH\r\c abort \d\d+++\d\dATH\r\c # You can also add other dialers: inetd, nullmodem ... #dialer nullmodem #complete \d\dexit\r\c #abort \d\dexit\r\c¹®¹ýÀÌ ¿Ïº®ÇÔÀ¸·Î ÀÌ ÆÄÀÏÀº ¼öÁ¤ÇÏÁö ¾Ê´Â °ÍÀÌ ´õ ¹Ù¶÷Á÷ÇÕ´Ï´Ù. ±×·¯³ª Àú ´Â ¸ðµ© ÃʱâÈ ¸í·ÉÀ¸·Î "ATZ" & "ATX4"¸¦ »ç¿ëÇÕ´Ï´Ù.
#uuguest guestpassword¸¸¾à uucp dialinÀ» Çã¿ëÇϽ÷Á¸é ´ÜÁö ÀÌ ÆÄÀÏ¿¡ system/passwords¸¦ ÷°¡ÇÏ¸é µË´Ï´Ù. ¾ÆÁÖ °£´ÜÇÕ´Ï´Ù. ¾ÈÀü»óÀÇ ÀÌÀ¯·Î °¢°¢ ºÐ¸®µÈ °èÁ¤°ú Ȩ µð·ºÅ丮¸¦ °¡Áö´Â °ÍÀÌ ±Ç°í µË´Ï´Ù. ±×·¯¸é ¿©·¯ºÐÀº °¢°¢ÀÇ ÈçÀûÀ» ãÀ» ¼ö ÀÖ½À´Ï´Ù(track).
# Description for the modem entry # Debianers, make SURE this device is root:dialout, mode 0660 (crw-rw---) port ACU type modem device /dev/ttyS0 dialer hayes speed 57600 # hardflow n # Description for the TCP port - pretty trivial. DON'T DELETE. # Change service number if non standard, cf /etc/services port TCP type tcp #service 540 # Description for the nullmodem entry # (ttyS1 means COM2) port nullmodem type direct device /dev/ttyS1 dialer nullmodem speed 115200¿©·¯ºÐÀÇ ¸ðµ©Æ÷Æ®¹øÈ£¸¦ Á¦¿ÜÇÏ°í ´Ù¸¥ °ÍÀº º¯°æÇÏÁö ¸¶¼¼¿ä. mgettyÀÇ ÃÖ±Ù¹öÁ¯Àº /dev/ttySN ÀÌÀü¹öÀüÀº /dev/cuaNÀÌ´Ù ¿©±â¼ NÀº °¢ÀÚ ÀÇ serial port ÀÌ´Ù. 0À¸·Î ½ÃÀÛÇÏ´Â N°ú ttyS(N)Àº COM(N+1)À» ÀǹÌÇÑ´Ù. ¿¹¸¦µé¸é Á¦ ¸ðµ©ÀÌ ttyS0(COM1)ÀÎ µ¿¾È null-modemÀº ttyS1(COM2)ÀÔ´Ï´Ù. ÃÖ±Ù¸ðµ©ÀÇ ´ëºÎºÐÀº hardware flow controlÀ» Áö¿øÇÕ´Ï´Ù. ¸¸¾à ¿©·¯ºÐÀÇ ¸ðµ© ÀÌ À̸¦ Áö¿øÇÏÁö¾Ê´Â´Ù¸é "#hareflow n"ÀÇ "#"¸¦ »©½Ã¸é µË´Ï´Ù.
# First some defaults. These are for ALL other entries (unless overridden). # protocol gvG protocol-parameter G packet-size 1024 # protocol-parameter G window 7 protocol-parameter G short-packets # # Our remote uucp connection. # system polux call-login * call-password * local-send / local-receive /var/spool/uucppublic remote-send / remote-receive /var/spool/uucppublic time any phone 0111111110 port ACU chat "" \r\c ogin:-BREAK-ogin:-BREAK- \L word: \P #chat "" \d\d\r\c ogin: \d\L word: \P # This is an alternate - it means that if a connection using the above # "system polux" fails it falls through to this entry. # Only useful if your service provider has more then one phone number for UUCP. #alternate polux-2 #alias polux-2 #phone 0222222220 # Here's another alternate - we poll the system over TCP/IP. # This is useful if we have a PPP connection to our provider. # The first two entries will fail because the modem is busy & we will poll # over TCP/IP. # #alternate polux-tcp #alias polux-tcp #time any #address uucp.polux #port TCP #protocol t # # Last example - a system that we poll over TCP/IP. # #system horizon #call-login * #call-password * #time any #chat "" \d\d\r\c ogin: \d\L word: \P #address uucp.horizon.nl #port TCP #protocol t"polux"¸¦ ¿©·¯ºÐÀÇ poll ½Ã½ºÅÛÀ̸§À¸·Î "0111111110"¸¦ ÀüȹøÈ£·Î ¹Ù²ã¾ß ÇÕ ´Ï´Ù. "polux-2","polux-tcp" ±×¸®°í "horizon"Àº »ç¿ëÀÚ ¿ä±¸ÀÇ ¿¹ÀÔ´Ï´Ù. ¸¸¾à ¿©·¯ºÐ ÀÌ ¼Û½Å(poll)ÇÏ´Â ½Ã½ºÅÛÀÌ Çϳª ÀÌ»óÀÇ lineÀ» °¡Áö°í ÀÖÀ¸¸é "itsname-2"·Î Á¤ ÀÇÇÕ´Ï´Ù. ¸¸¾à ¶§¤¨·Î PPP·Î È£ÃâÇϸé "itsname-tcp"·Î Á¤ÀÇÇÕ´Ï´Ù. ÀÌ°ÍÀº Åë½Å´ë±â(busy)½Ã À¯¿ëÇÕ´Ï´Ù.
¿ì¼± ½ÇÇàÇغ»´Ù.
(root@barberouge:uucp)# su uucp (uucp@barberouge:uucp)# /usr/lib/uucp/uuchk Local node name barberouge Spool directory /var/spool/uucp Public directory /var/spool/uucppublic Lock directory /var/lock Log file /var/log/uucp/log Statistics file /var/log/uucp/stats Debug file /var/log/uucp/debug Global debugging level uucico -l will strip login names and passwords uucico will strip UUCP protocol commands Start uuxqt once per uucico invocation System: polux When called using any login name Call out using port ACU The possible ports are: Port name ACU Port type modem Device /dev/ttyS0 Speed 57600 Carrier available Hardware flow control available Dialer hayes Chat script "" ATZ\r\d\c OK\r \dATX4\r\d\c OK\r ATDT\D CONNECT Chat script timeout 60 Chat failure strings RING NO\sCARRIER ERROR NO\sDIALTONE BUSY NO\sANSWER VOICE Chat script incoming bytes stripped to seven bits Wait for dialtone , Pause while dialing , Carrier available Wait 60 seconds for carrier When complete chat script "" \d\d+++\d\dATH\r\c When complete chat script timeout 60 When complete chat script incoming bytes stripped to seven bits When aborting chat script "" \d\d+++\d\dATH\r\c When aborting chat script timeout 60 When aborting chat script incoming bytes stripped to seven bits Phone number 0111111110 Chat script "" \r\c ogin:-BREAK-ogin:-BREAK- \L word: \P Chat script timeout 10 Chat script incoming bytes stripped to seven bits Login name uudan Password your_password_here At any time may call if any work May retry the call up to 26 times May make local requests when calling May make local requests when called May send by local request: / May send by remote request: / May accept by local request: /var/spool/uucppublic May receive by remote request: /var/spool/uucppublic May execute /usr/bin/uucp /usr/bin/rmail /usr/bin/rnews Execution path /bin /usr/bin /usr/local/bin /usr/sbin Will leave 50000 bytes available Public directory is /var/spool/uucppublic Will use protocols gvG For protocol G will use the following parameters packet-size 1024 short-packets¸ðµç Á¤º¸µéÀÌ ¾Ë¸Â°Ô ¼³Á¤µÇ¾ú´ÂÁö È®ÀÎÇÕ´Ï´Ù. °æ°í : ¿©·¯ºÐÀÇ ½ÇÇà°á°ú(mileage?)°¡ ´Ù¸¦¼öµµ ÀÖ½À´Ï´Ù. ´Ù¸¥Á¦Ç°µéÀº ºñ·Ï Linux FSSTD¿¡µµ ºÒ°íÇÏ°í ´Ù¸¥ °æ·Î¸¦ »ç¿ëÇÕ´Ï´Ù. ¸¸¾à ¸ðµç °ÍÀÌ Á¦´ë·Î ½ÇÇàµÇ¾ú´Ù¸é ´ÙÀ½À» ½ÇÇàÇÕ´Ï´Ù.
/usr/sbin/uucico -r 1 -x 9 -s remote_system_name¿É¼Ç -x 9´Â Ãʱ⼳ġ½Ã µµ¿òÀÌ µÇ´Â /var/log/uucp/debugÈÀÏ¿¡ ¾²¿©Áö´Â ÃÖ´ë debuggingÁ¤º¸ÀÔ´Ï´Ù. Àú´Â º¸Åë -x 4·Î ½ÇÇàÇÕ´Ï´Ù. ¿Ö³ÄÇÏ¸é ±× Á¤µµ°¡ login¹®Á¦µéÀ» ÀÚ¼¼È÷ È®ÀÎ (log)ÇÒ ¼ö ÀÖ´Â levelÀÔ´Ï´Ù. ÀÌ ¹®ÀåÀº ¸í¹éÇÏ°Ô ¿©·¯ºÐÀÇ ½Ã½ºÅÛ ÆÄÀÏ (account/passwoed)À¸·ÎºÎÅÍ Á¤º¸µéÀ» Áö¿ó´Ï´Ù. ±×·¡¼ ´Ù¸¥À̵éÀÇ Àбâ·ÎºÎÅÍ º¸È£ÇØ¾ß ÇÕ´Ï´Ù.
emeraude.syseca.frÀÇ Pierre.Beyssac Taylor´Â ´õ ¸¹Àº logging ´Ü°è(level)À» Á¦°øÇÕ´Ï´Ù. -x allÀº °¡´ÉÇÑ ÃÖ´ëÀÇ ´Ü °è¸¦ ÀǹÌÇÕ´Ï´Ù. ¶ÇÇÑ, fly(?) µµÁß ¹ß»ýÇÏ´Â »óÈÀ» È®ÀÎÇϱâ À§ÇÑ debuggingµµÁß ´ÙÀ½À» ½ÇÇàÇÕ ´Ï´Ù. " tail -f /var/log/uucp/debug"