Reputation: 11088
etc/profile
:
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}"
else
PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"
fi
export PATH
unset ROOTPATH
echo $PATH
:
/sbin:/bin:/usr/sbin:/usr/bin
So:
/usr/local/bin is not showing up, so I think it may be using a different file.
I have tried putting export PATH=$PATH:/usr/local/bin and it's fine but that is not permanent.
Upvotes: 0
Views: 559
Reputation: 914
Informix databases were initialized with a root database (destructively) and there were settings in a config file I found, for your perusal
ROOTNAME specifies a name for the root dbspace for this database server configuration.
ROOTOFFSET specifies the offset into an allocation of disk space (file, disk partition, or device) at which the initial chunk of the root dbspace begins.
Use the ROOTPATH configuration parameter to specify the full path name, including the device or file name, of the initial chunk of the root dbspace. The ROOTPATH configuration parameter is stored in the reserved pages as a chunk name.
Use the ROOTSIZE configuration parameter to specify the size in kilobytes of the initial chunk of the root dbspace. The size that you select depends on your immediate plans for your database server.
Note the ROOTPATH is a filename, and it is kept in "reserved pages" much like the login.defs file.
I suspect it is an artifact out of time...
Upvotes: 1
Reputation: 9740
Check your shell init files, for bash that would be /etc/bashrc
or /etc/bash.bashrc
or something like that as well as ~/.bashrc
and ~/.bash_profile
. Most shells have similiar init scripts, check the manual.
Also check out /etc/env.d/*
and /etc/environment
.
Upvotes: 1