02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2<br />

Setup and Startup<br />

Establishing the VxWorks System Name and Address<br />

The UNIX host system maintains a file of the names and network addresses of<br />

systems accessible from the local system. This database is kept in the ASCII file<br />

/etc/hosts, which contains a line for each remote system. Each line consists of an<br />

Internet address and the name(s) of the system at that address. This file must have<br />

entries for your host UNIX system and the VxWorks target system.<br />

For example, suppose your host system is called mars and has Internet address<br />

90.0.0.1, and you want to name your VxWorks target phobos and assign it address<br />

90.0.0.50. The file /etc/hosts must then contain the following lines:<br />

2<br />

90.0.0.1 mars<br />

90.0.0.50 phobos<br />

Giving VxWorks Access to the Host<br />

The UNIX system restricts network access through remote login, remote command<br />

execution, and remote file access. This is done for a single user with the .rhosts file<br />

in that user’s home directory, or globally with the /etc/hosts.equiv file.<br />

The .rhosts file contains a list of system names that have access to your login. Thus,<br />

to allow a VxWorks system named phobos to log in with your user name and<br />

access files with your permissions, create a .rhosts file in your home directory<br />

containing the line:<br />

phobos<br />

The /etc/hosts.equiv file provides a less selective mechanism. Systems listed in this<br />

file are allowed login access to any user defined on the local system (except the<br />

super-user root). Thus, adding the VxWorks system name to /etc/hosts.equiv<br />

allows the VxWorks system to log in with any user name on the system.<br />

Table 2-2<br />

Accessing Host from Target<br />

Target listed in:<br />

/etc/hosts.equiv<br />

.rhosts file in user’s home directory<br />

Access<br />

Any user can log in.<br />

Only this user can log in.<br />

27

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!