User's Reference > Administration > Reality on the Host > Reality Configuration on the Host > Reality Version

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

Environment Variables (Host) (EnvironmentVariablesUNIX.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

Environment Variables for UNIX

A number of configuration parameters can be specified by setting host environment variables.

Environment variables are defined at:

A particular version or instance of Reality:

$REALROOT/files/realityrc. The environment variables defined in this file affect all processes using the associated version of Reality.

For a particular user:

$HOME/.realityrc. The Reality environment variables can be overridden for a particular UNIX user by defining them in a .realityrc file in that user's home directory. In particular, you can specify the database, user-id and account to be used.

Note: Environment variables can also be set for specific Windows users, but these will only effect Reality commands entered at the command prompt. Incoming TCP connections to Reality all use the same Windows user-id (Reality User).

For a particular directory:

.realityrc in the directory concerned.

Note: The parameters defined in the .realityrc files may also be defined in .profile (parameters defined in .profile take precedence over those defined in .realityrc).

In the UNIX environment, settings in .profile override those in /etc/profile. Within the Reality environment, once set, a setting cannot be overridden, so those set in the host environment take precedence over those in $REALROOT/files/realityrc. On UNIX hosts, the different files have the following precedence:

  1. .realityrc in the current directory.
  2. $HOME/.realityrc.
  3. $REALROOT/files/realityrc.
  4. Database configuration parameters for specific parameters.

See Differences between UNIX and Windows for details of how to use the values of host environment variables on UNIX and Windows systems.

Reality Version

The REALROOT and PATH environment variables define the location of the Reality software and therefore define the version of Reality which is run by a user. These variables are set to the live version of Reality when the user logs on, but can be changed to specify a non-live version by running the realroot command.

Database, User-id and Account

On UNIX, environment variables which control entry to Reality may be defined in .realityrc in a user's home directory:

REALDBASE The default database - this can be the database's full pathname or its network name as defined in the ROUTE-FILEClosed .

REALUSER The Reality user-id.

REALACC The Reality account.

These are defined as follows:

REALDBASE=database

REALUSER=user-id{,password}

REALACC=account-name{,password}

Caution

If passwords are included in the .realityrc file, ensure that UNIX permissions on the file are set to provide adequate password protection from other UNIX users; that is, owner access only.

It is also recommended that users are not allowed to use the UNIX user-id which was used to create the Reality database (the database owner). If you allow users to log on to the database under the owner's user-id, the security offered by the lockdbase command is no longer effective (unless you use the A option which allows superuser access only).

Notes:

RealityV15.1 (MoTW) Revision 7Comment on this topic