Solved

solaris 7 - adding to the path

Posted on 2001-08-06
2
206 Views
Last Modified: 2013-12-27
Hello,
i've just installed solaris 7 server.  I'm trying to add a few directories to the path namely /usr/local/bin.  I have tried adding this to a few .profile files in /etc/skel/ however, when i echo $PATH, the addittional setting is not picked up.  I am logged in as root.

how do i solve this, so that all users including root have /usr/local/bin automatically in there path when they log in?

regards
peewee
0
Comment
Question by:Peewee
2 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 40 total points
ID: 6356111
if you like to add it for all users, change /etc/profile .
If it's only for specific users, change $HOME/.profile .

After doing that you need to issue:
   . /etc/profile
or
   . ~/.profile

(this is for sh, bash, ksh or alike)
0
 
LVL 5

Author Comment

by:Peewee
ID: 6356857
many thanks
pg
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

910 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

25 Experts available now in Live!

Get 1:1 Help Now