Solved

solaris 7 - adding to the path

Posted on 2001-08-06
2
205 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

743 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

12 Experts available now in Live!

Get 1:1 Help Now