Solved

set ROOT PATH using solaris 2.5.1

Posted on 1998-07-24
2
335 Views
Last Modified: 2013-12-16
how to set environment for user ROOT permenantly using solaris 2.5.1
0
Comment
Question by:mahadir
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now