Ocenite etot tekst:


Itak zadacha: zaregistrirovat' domashnij komp'yuter Petrova Ivana Vasil'evicha
u nas na IPS. Resheno: emu vydelyaetsya

  email:    petrov.ips.ras.ru
  login:    uupetrov
  passwd:   1petRoV
  host:     pulsar

I.   Registriruem uucp-login na pulsar'e             /etc/passwd
II.  Propisyvaem ego v UUCP-konfiguracionnyh fajlah  /usr/lib/uucp/hdb-config/*
III. Opisyvaem ego v konfiguracii sendmail na pulsar'e /etc/mailertable
IV.  Opisyvaem ego na nashem DNS servere ipsun        /var/named/ips.ras.ru



1. V fajl /etc/passwd vstavlyaem strochku

uupetrov::14097:14:Ivan W. Petrov UUCP login:/var/spool/uucppublic:/usr/lib/uucp/uucico

VNIMANIE:  vvidu  osoboj  krivizny  uucp  na  pulsar'e,  gruppa
uucp'shnogo pol'zovatelya dolzhna byt' ne 14 (uucp), a  0  (root).
(KRIMINAL !!!)

2. passwd uupetrow



        Na pul'sare ustanovlen taylor-uucp 1.05, ispol'zuyushchij
konfiguracionnye fajly formata HDB.

Posemu pravim dva fajla:
Systems:    mashiny, kotoryh my znaem
Permitions: chto mogut eti mashiny u nas delat'. Obychno - tol'ko otpravlyat' pochtu

3. Systems:

ippi	Never ACU 9600 1234567 "" \r\r gin:--in:--in: uuippi word: qwe
kur     Never ACU 9600 7654321 "" \r\r gin:--in:--in: uukur word: sg9wl
  . . .
petrov  Never ACU 9600 Telefon "" \r\r gin:--in:--in: login word: parol'

        Voobshche to   telefon, login, parol' mogut byt' lyubymi - ved'
my ne sobiraemsya sami tuda zvonit'.

4. Permitions:

LOGNAME=uupetrov MACHINE=petrov VALIDATE=petrov  MYNAME=pulsar \
	SENDFILES=yes REQUEST=yes \
	COMMANDS=/bin/rmail:/usr/bin/uucp \
        READ=/usr/spool/uucppublic WRITE=/usr/spool/uucppublic

Obratit' vnimanie, chtoby prinadlezhnost' etih katalogov byla uucp.uucp



 Poskol'ku v /etc/sendmail.cf est' takie sttroki:
# "Smart" relay host (may be null)
DS
# Mailer table (overriding domains)
Kmailertable dbm -o /etc/mailertable

to

5. V fajl /etc/mailertable dobavit' stroku

.mian			smtp:class.mian.su
mian.su			smtp:class.mian.su
abc.ac.msk.su		uucp:abc
       . . .
larin.mian.su		local:larin
onegin.ips.ras.ru	uucp:onegin
petrov.ips.ras.ru	uucp:petrov

/* # A eto hozyajstvo rabotalo ran'she v /etc/sendmail.cf,
 * DUpulsar.ac.msk.su
 * Cwpulsar.ac.msk.su pulsar.ac.msk.su.UUCP
 * # Cw znachitt, chto nado barat' pochtu i na  pulsar.ac.msk.su tozhe
 *
 * # A etot fragment teper' podlezhit unichtozheniyu
 * CUaag
 * CUadian
 * CUadmin
 */

6. Vypolnit' komandy

cd /etc
makemap dbm mailertable < mailertable

7.  Perezapustit'  sendmail,  esli v /etc/sendmail.cf vnosilis'
izmeneniya. Hotya v nashem sluchae izmenenij tuda ne trebuetsya.


 IV. DNS

8.   v  fajle  /var/named/ips.ras.ru  Dobavit'  host  petrov  i
uvelichit' serial num

		1995060102	; Serial (yyyymmddxx)
               ^^^^^^^^^^^^^

petrov	MX      10      pulsar
 	MX	20      mailrelay
 	MX	30      maylrelay.gmd.de

          ^^^^^^^^^^^^^^^^^^^^^^^^^   fragment   skopirovat'  s
                                      uucp-shnogo analoga.

9. Perezapustit' DNS servera na ipsune

named.reload

Last-modified: Thu, 12 Feb 1998 07:28:19 GMT
Ocenite etot tekst: