[comp.unix.questions] Hostname aliasing in HDB UUCP

dce@mips.UUCP (David Elliott) (08/26/87)

In the past few months, an interesting problem has come up twice, and
I think it's time I found out the solution and documented it.

The situation is that system X wants to talk to system Y, while
calling it Z.

That is, the Systems file entry looks like:

	hp-cup Any ...

but the machine on the other side is actually named 'hpda'.

Does anyone know of any way to "alias" a Systems entry in this
way, or is it just unsafe?

-- 
David Elliott		{decvax,ucbvax,ihnp4}!decwrl!mips!dce

kathy@wrcola.UUCP (K.M.Vincent) (08/27/87)

In article <623@quacky.UUCP> dce@mips.UUCP (David Elliott) writes:
>
>The situation is that system X wants to talk to system Y, while
>calling it Z.
>
>That is, the Systems file entry looks like:
>
>	hp-cup Any ...
>
>but the machine on the other side is actually named 'hpda'.
>
>Does anyone know of any way to "alias" a Systems entry in this
>way, or is it just unsafe?


I've heard of this being done - but with the called end
controlling the situation.  For example, cuaepd was not a real
machine - it was a "virtual" machine on cuae2, set up to enable
people to access mod.sources archives.  

Someone else I know did the same thing.  He set up his system
so that if another machine called in looking for "market" - his
"virtual machine" - his machine "bpsrate" allowed a different set
of permissions and such.  [Ed.note: The names have been changed
to protect the innocent.]

The key was in the Permissions file.  There's an option you can
set (sorry, no docs handy, and I don't remember the name) so that,
if machine A calls in and tells your machine it's looking for
machine X, your machine tells machine A that it *is* machine X. 
And away you go.

Unsafe, yes ...


Kathy Vincent -----> AT&T: {ihnp4|mtune|burl}!wrcola!kathy
              -----> Home: {ihnp4|mtune|ptsfa|codas}!bakerst!kathy

jhc@mtune.ATT.COM (Jonathan Clark) (08/27/87)

In article <623@quacky.UUCP> dce@mips.UUCP (David Elliott) writes:
>The situation is that system X wants to talk to system Y, while
>calling it Z.
>
>That is, the Systems file entry looks like:
>
>	hp-cup Any ...
>
>but the machine on the other side is actually named 'hpda'.

If I understand the problem correctly, you want to call hpda and have it
claim that it is hp-cup. If so, then the solution is as follows:

hpda's Systems entry is:

hpda Any ACU 4321 in: nuucp

hp-cup's entry is:

hp-cup Any ACU 4321 in: luucp

Note the different lognames.

Then in hpda's Permissions file you put:

LOGNAME=luucp MYNAME=hp-cup

and away you go.

This is in Appendix IV of my UUCP Administration manual, I have no idea
where it might be in the printed ones. You can also change your name while
calling out:

MACHINE=foo MYNAME=bar

makes your system claim to be 'bar' only when calling 'foo'.

Note that all this makes the *real* identity of the machine calling in
problematical at best...
-- 
Jonathan Clark
[NAC,attmail]!mtune!jhc

An Englishman never enjoys himself except for some noble purpose.

tim@ora.UUCP (Tim O'Reilly) (08/28/87)

In article <623@quacky.UUCP>, dce@mips.UUCP (David Elliott) writes:
> The situation is that system X wants to talk to system Y, while
> calling it Z.  That is, the Systems file entry looks like:
> 
> 	hp-cup Any ...
> 
> but the machine on the other side is actually named 'hpda'.
> 
> Does anyone know of any way to "alias" a Systems entry in this
> way, or is it just unsafe?

I believe there is a "myname" option in HDB that will let
you do the reverse of this.  That is, in your example,
hpda can have a definition in a Permissions file entry for
you that says when you call, myname=hp-cup.   I don't think
there is a way to do this from your end.  

I've never tried this, so let me know if it works.

-- 
Tim O'Reilly (617) 527-4210
O'Reilly & Associates, Inc., Publishers of Nutshell Handbooks
981 Chestnut Street, Newton, MA 02164
UUCP:	seismo!uunet!ora!tim      ARPA:   tim@ora.uu.net

inra@axis.fr (Inst. Natl. Rech. Agronomique) (09/02/87)

Sorry I am new on the network and my english is bad...
I am trying to send to the shell, from a file:
ESC A
text
Return
If I don't have problem to do that directly from the terminal i am unable
to send it from a file. I was looking in sh and echo but I was unable to find the good syntax.
Can anyone help me?
Thanks in advance

----------------------------------
Yves Bertheau
INA-PG Pathologie Vegetale
16 rue Claude Bernard
75231 PARIS cedex 05
Tel: (1) 43.31.93.97