Solved

set ROOT PATH using solaris 2.5.1

Posted on 1998-07-24
2
340 Views
Last Modified: 2013-12-16
how to set environment for user ROOT permenantly using solaris 2.5.1
0
Comment
Question by:mahadir
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
jlms earned 10 total points
ID: 1812377
That depends on the shell you are using for root.
Check your /etc/passwd file, look for the line describing root and at the end is the shell that is being used.

If root is using /bin/csh, then you need in root's home directory (usually / ) the files .login and .cshrc and there you can define stuff.

If root is using other shell (typically /bin/sh or /bin/ksh) then you need .profile in root's home directory.
0
 
LVL 2

Expert Comment

by:blowfish
ID: 1812378
The information that you were given will work, but it is not exactly correct.  

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
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question