:


    .

  uucp    ,     
  :

   uucp -r moj_fajl  'pulsar!fajl_tam'

  moj_fajl        pulsar. , 
   ,  -        .  ,
,     :

   uucp -r moj_fajl  'pulsar!~'

         
pulsar  

    /usr/spool/uucppublic/

       ,  -
   : "~"

   ,    uucp    -
  .    ,   "!"  "~" 
   ksh  bash.  -r  -
 uucp ,       -
   pulsar.    ,    
  .

uucp    :
  1. .   uucp -  
    ,  uux - 
     .

 2.  .  ,    
uucico - (UUCP Copy in Copy out).    
    .       
""  uucico.   ""  
   ,       
  .      ""  ,  
         (   
""  uucico,   ).     
uucico  .     ,   
  .

   ,         
        -
  UUCP.



            
/  .     :

1.   UUCP .
2. () () UUCP .
3.  (),     .
4. Login  ,      uucp-account'.
5. ,     .
6.  -  "AT"     .

      , -
     /etc/uucp/ (   /usr/lib/uucp/ ,
    /usr/lib/uucp/taylor_config  )  (        
, . man uucp    ).  :

Config          #       (  ) ;
Systems         #     uucp-: ,  -
                #    , uucp-logname, uucp-passwd ;
Devices         #   ,    .
Dialers         #     - ( AT--
                #   ).
(  Linux  : config, sys, port, dial)

,    .    Hayes--
    V32/V42bis      14400  baud  (GVC,  ZyXEL,  US-
Robotics...),     /dev/modem
(      /dev/contty03,    
     ln  -s /dev/contty03 /dev/modem 
  ?).    fedfuru.

.    Unix-   -
     - :     (
      ,     -
  getty  ttymon),     -
,      -  ,    . 
     , :

SunOS:   /dev/ttyy01   IN, /dev/ttyz01  OUT
Linux:   /dev/ttyS1    IN, /dev/cua1    OUT
ISC:     /dev/ttyFD01  IN, /dev/ttyFM01 OUT
SVR4/88: /dev/contty00 IN, /dev/??????? OUT

###   " "(  )###
      .  Linux-Serial-HOWTO:
> There has been some discussion  on  the  merits of /dev/mouse
> and /dev/modem. I strongly discourage the use of these links.
> In particular,  if you are planning  on using your  modem for
> dialin you will run into problems because the lock files will
> not work correctly if  you  use /dev/modem. Also, Taylor UUCP
  does not support symlinks either.  uugetty 
     . .  ALTLOCK 
  /etc/defaults/getty .
################__" "_#######################

        uucp-:
1:  ,   kiae, :  9469984,  9469994. 
      / uufedurp/ABCd8
2:     ,    fedfond,  095-
   125-7623.             /
   uufedurp/KLmn10

  /etc/uucp   Systems, Devices, Dialers

Systems: -------   -----------------------------
kiae Any modem1 19200 946-9984 "" \n\r\d\r\d\r ogin:-BREAK-ogin:
                                   uufedurp ssword: ABCd8
fedfond Any modem1 19200 8w095-125-7623 "" \n\r ogin:-BREAK-ogin:
                                   uufedurp ssword: KLmn10

Devices: ---------------   ----------------------
modem1 contty03 - 19200 gvc1440

Dialers: ---------------   ----------------------
gvc1440 =,-, "" \M\dATZ\r\c OK\r \EATDP\T\r\c CONNECT \m\c

----------------   --------------------------------------

###   " "(  )###
    Taylor-uucp.   ,   -
  SVR4/88 __ Taylor-uucp,     ..
HoneyDanBer-uucp,      BNU  (Basic  Networking  Utilities).
Taylor   ,       -
   -    (Config, Systems, Devices,
Dialers, ...)    (config, sys, port, dial, ...).  -
 -.    Linux  Taylor-uucp  ,
                   Taylor-      
/usr/lib/uucp/taylor_config/,         -  
HDB-     /usr/lib/uucp/hdb_config/.  IMHO  
 HDB -     -
.
################__" "_#######################

###   " "###
     BNU-uucp,  Taylor-uucp 1.05:
  /usr/lib/uucp/taylor_config   config,
sys, port, dial  :
/* :   RedHat Linux  
uucp    /etc/uucp/ */

config: -------------------------------------------------------
uuname     fedfuru        #    

sys: -------   ---------------------------------
system kiae          #   ############################
myname fedfuru
time Any
port  modem         #      port
speed 38400
chat  ogin:-BREAK-ogin: uufedurp ssword: ABCd8
phone 946-9984
alternate            #   .
phone  946-9994

system fedfond       #   ##################
time Any
myname   fedfuru
port  modem         #      port
speed 38400
chat  ogin:-BREAK-ogin: uufedurp ssword: KLmn10
phone 8w095-125-7623

port: ---------------   ------------------------
port    modem       #        sys
type    modem
device  /dev/modem
speed   38400
dialer  gvc1440      #  -    dial

dial: ---------------   ------------------------
dialer     gvc1440   #      port

#   .
#  \T    
chat       "" ATZ OK ATH0E0Q0 OK ATDP\T CONNECT
# ATZ -  profile 0
# ATH0 -  
# ATE0 - no echo
# ATQ0 -   

chat-fail  BUSY                #    
chat-fail  ERROR
chat-fail  NO\sCARRIER
chat-fail  NO\sDIALTONE
---------------------------------------------------------------
################__" "_#######################

.      UUCP  .  , 
""      ,       
 :

uucico -s kiae
uucico -s fedfond

    ,          crontab,      
,     .



    ,  -
        sysadm.        
network_services / basic_network



,       ,    
.   ,    () 
 .   :

1:      uucp-   Systems  -
      ,    .
2:        Permitions
2:     uucp-login
3: ,     "Auto-answer" ,   
   /dev/modem    getty ( ttymon), -
         /dev/modem

1.          Systems,  (  
             ),          
      ,      , 
    .

2.   /etc/passwd   :

uupetrov:x:1002:14:UU Petrov:/var/spool/uucp:/usr/lib/uucp/uucico

    :
pwconv
passwd uupetrov

3.    ""      -
    

atz0         #   profile 0
ats0=1       # 0=1 -    1- 
at&w0        #   setup  profile 0
at&y0        #       0

# at&f       #   ,   
             #  ,    "reset"

              SVR4  (
  "cu"),  "echo".

     echo atz0   > /dev/modem
     echo ats0=0 > /dev/modem
     echo at&w0  > /dev/modem         #   

   gold,        .

4.   /etc/inittab   :

c3:234:respawn:/usr/lib/saf/ttymon -g -d /dev/modem   -l contty




/usr/bin/uucp     -   /  uucp-
/usr/bin/uux      -     uucp-
/usr/bin/uustat   -    

/usr/lib/uucp/uu* -   UUCP

/etc/uucp/              -     UUCP

  /usr/lib/uucp/taylor_config    -  UUCP  Linux
  /usr/lib/uucp/                 -  UUCP  
                                   

/var/spool/uucppublic     -      
                               

/usr/spool/mqueue         -    
   /usr/ucblib/mqueue     -     ?
/var/spool/uucp/""  -      ""
/var/spool/uucp/.Log      -    uucp



     :     -
  "" host,      uucp,  -
   /etc/sendmail.cf   :

. . .
# "Smart" relay host (may be null)
DSuucp-dom:kiae
. . .

            (..  
   )     uucp  
uucp-  "kiae"           
 kiae. ,         
.

          uucp-dom  (    ).
,    , sendmail.cf   Moto
role     /etc/,   /usr/ucblib/.

   -   -   -   .
,  !

#   ,     8-    
#  sendmail8.x.x,   sendmail.cf:
# strip message body to 7 bits on input?
O7False


#   ,  sendmail  ,   
#  .    -   :

Cwlocalhost feduru.urup.ru feduru.mss.ru



  ,    .
  cu -  .

   cu -l /dev/modem    #        

           -
.  ,       ,  -
   /dev/modem , ,  ""    -
,         .  
  

   atdp100

,     ""   -
    Systems.

   cu pulsar

     /dev/modem, /dev/contty*. -
  (???):

 crw-rw----   1 root     uucp       ...         /dev/contty0
 crw-rw----   1 root     uucp       ...         /dev/modem

 uucico        -
.      uucp

   /usr/lib/uucp/uucico -r1 -x9 -f -s pulsar
   /usr/lib/uucp/uucico -x all -f -s kiae

          uucp 
 /var/spool/uucp :

   .Admin/audit.local
   .Log/
   .Status/
   ERRLOG
   LOGFILE
   SYSLOG

,  

   tail -f /var/uucp/.Admin/audit.local &
   tail -f /var/uucp/.Log/uucico/kiae



###   " "(  )####
Dmitry Mayorov Compulsory Health Insurance Fund
Phone: +7 (812) 112-3517                  St. Petersburg, Russia
>    sendmail, rmail,
>    .      8   -
>    ?

, ,    .     
,       ISO.  -
    ,    UUCP,    .
  :

1.  sendmail.cf:

# RelCom UUCP - with ISO 8859-5 to KOI-8 translation
Muucp-koi, P=/usr/local/bin/_uux, F=mDFMhu, S=52/31, R=21, M=100000,
                   ^^^^^^^^^^^^^^^^^^^ , . 
           A=_uux - -r -a$f -gC $h!rmail ($u)

2.  /usr/local/bin/_uux   :
#!/bin/sh
PATH=:/usr/bin:/usr/local/bin:/usr/ucb:/bin:
/usr/local/bin/iso-koi | /usr/bin/uux $*

(iso-koi -   )

 ,   ,   hack -    
  . , ,  ,        
        -  -
     .

         KOI   ISO, :

1.  rmail  /usr/local/bin/__rmail;
2.   rmail,    :

#!/bin/sh
PATH=:/usr/bin:/usr/local/bin:/usr/ucb:/bin:
/usr/local/bin/koi-iso | /usr/local/bin/__rmail $*

       rmail, -
  rbmail   .

  rbmail  SVR4/88  .   , -
...  RelCom (      )    
.       (  Taylor-uucp 
 Mail-user a),           
uucp/e-mail  Motorol.

--
Dmitry Mayorov Compulsory Health Insurance Fund
Phone: +7 (812) 112-3517                 St. Petersburg, Russia
        --   --
################__" "_#######################

    Solaris: uucp direct line

Systems : ranisi Any dirt06 9600 unused "" P_ZERO "" \n\c ogin:-\n\c-ogin: uuintra\n\c ssword: parolf9f10\n\c "" P_ZERO tailor-uucp : 38400, 9600 ^M chat- Linux , \n\c P_ZERO - "no parity" - 8- . uucp- crontab 5 uucico 0,5,10,15,18,20,25,30,35,40,45,50,55 * * * * (\ /usr/lib/uucp/uucico -r1 -f -s ranisi ; sleep 30 ; \ /usr/lib/sendmail -q ) > /dev/null 2>&1 uucico "force" redial (-f - , )

    uucico

> : \177}\030\177} \177}#\177} port type pipe port command /bin/telnet -8E hostname

    Secure uucp tcp

1. port type tcp with ssh-port forwarding : uucp-tcp- localhost /etc/inetd.conf : uucp stream tcp nowait uucp /usr/sbin/tcpd /usr/sbin/uucico -l /etc/hosts.allow : uucico: 127.0.0.1 # uucico , uid uucp - read chmod og+r /etc/hosts.allow /etc/uucp/passwd : propisatx uu-, __ uuyourlogin yourpasswd : localhost, ssh /etc/inetd.conf : uucp stream tcp nowait uucp /usr/sbin/tcpd /usr/sbin/uucico -l /etc/hosts.allow : uucico: 127.0.0.1 /etc/uucp/port : tcp-connect port tcp-connect type tcp service 540 /etc/uucp/sys : . . . port tcp-connect address 127.0.0.1 chat ogin: \L ssword: \P alternate . . . " " root ssh forward ssh1 -C -L 540:127.0.0.1:540 193.232.173.6

Last-modified: Mon, 03 Apr 2000 08:38:25 GMT
: