mahadir
asked on
set ROOT PATH using solaris 2.5.1
how to set environment for user ROOT permenantly using solaris 2.5.1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
First of all, root's shell should always be /sbin/sh, never anything else. This version of the shell is statically linked, and does not require any dynamically loaded libraries that would not be available at boot time if /usr could not be mounted or accessed. /sbin is always on the / (root) filesystem.
To modify root PATH, edit /etc/default/login and find the following line(s):
# SUPATH sets the initial shell PATH variable for root
#
SUPATH=/usr/sbin:/usr/bin
Change the list of directories to suit your needs, and the next time you login as root, your new path will be active.
--frankf