Problem
A user is unable to log in to SCO PCI server from PCI client;
unable to access host LCS table. The error:Fatal Error in 22198 Unable to access host LCS table, error -1
may occur. You may also see a Fatal Error:Unable to open host lcs table, error -1 Solution
Replace the file: /usr/pci/bin/environ with the enclosed
version.This has been reported to SCO Engineering.
--------------------------#! /bin/sh
# @(#)environ 2.4 5/4/95 15:35:04
#
# SCO PC-Interface for Unix Environment -- Santa Cruz Operation UNIX/ODT# Set the umask to a reasonably safe value.umask 002# The user's file limit defaults to 4 MB. However, since the value can
# only be increased by the root user, this will only work for network
# connections, or a serial connection by "root."pciFileLimit=`ulimit -f`
if [ "$pciFileLimit" -lt 8192 ]; then
ulimit -f 8192 > /dev/null 2>&1
fi# If the "TIMEZONE" file exists, pull it in, so that the user will be started
# in the proper temporal region.if [ -f /etc/TIMEZONE ]; then . /etc/TIMEZONE fi
# PRINTPROG is the default print program and PRINTPATH is a list of directories
# the system should search for print programs. The print program specified for
# PRINTPROG, as well as the print programs invoked by the user with the PRINTER
# command, must reside in one of these directories. Change these variables to
# specify the desired default print program and search paths. If you do not
# define PRINTPROG, the server attempts to execute /usr/pci/bin/pciprint. A
# sample pciprint program is in the host-side distribution.PRINTPROG=/usr/pci/bin/pciprint
PRINTPATH=/bin:/usr/binexport PRINTPROG PRINTPATH# If the LANG environment variable isn't set, set it to a default, then pull
# out the separate parts: LANGPRT and CODESET. LANGPART contains the language
# and country specification, while CODESET contains the code-set (codepage).
# Once the parts are separated, make sure that we understand the code-set. If
# so, don't do anything else. If the code-set isn't specified, silently set
# it to our default. If the code-set is unrecognized, print a warning message
# and set it to the default.
#
# NOTE: These values, LANG, NLSPATH and LCSPATH, affect the host server only.
# The client messages are controlled on the client.DEFAULT_LANG_FILE=/etc/default/lang
if [ "$LANG" = "" -a -f $DEFAULT_LANG_FILE ]; then
eval `grep '^[ ]*LANG=' $DEFAULT_LANG_FILE | head -1`
fi
LANG=${LANG:-C_C.C}eval `echo $LANG | awk -F. '{ printf("LANGPRT=%s\nCODESET=%s\n", $1, $2) }'`case "$CODESET" in
pc850 | pc437 | 8859 | C)
;;ISO8859-1 | ascii)
LANG=$LANGPRT.8859
;;"")
LANG=$LANGPRT.pc850
;; *)
echo "The variable \$LANG ($LANG) doesn't specify a code set\c"
echo " that is"
echo "recognized by the PC-Interface Server. Using the\c"
echo " default of pc850."
LANG=$LANGPRT.pc850
;;
esac
unset CODEPAGE
unset LANGPRTNLSPATH=/usr/pci/%N/%L.%C:/usr/pci/%N/%L.lmf
LCSPATH=/usr/pci/libexport LANG NLSPATH LCSPATH# The default startup options for both the mapsvr and consvr should work in
# most cases. The following two variables can be altered to provide special
# case situations.OPT_MAPSVR=
OPT_CONSVR=
-----------------------------------