저는 여러분에게 설치시에 포함되어있는 환경화일을 권해드립니다. 파일들은 문서에 포함되어있습니다.
이 파일을 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"