The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Couldn't set locale correctly Mr Pink SUN Solaris 7 03-03-2009 08:16 AM
$PWD shows absolute path vs path w/symbolic links kornshellmaven Shell Programming and Scripting 3 06-13-2007 12:15 PM
how to check the actual path instead of link path reldb UNIX for Advanced & Expert Users 4 10-04-2006 09:55 AM
vi - replacing a relative path with absolute path in a file Yinzer955i UNIX for Dummies Questions & Answers 2 09-07-2006 11:47 AM
cc path problem - no acceptable path found kendokendokendo UNIX for Dummies Questions & Answers 2 09-12-2005 09:52 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-23-2002
yishen yishen is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 2
Unhappy why the PATH can not be set correctly?

I'm using Linux-Mandrake 8.0 in my laptop. After I logged in as a "root", I added a new path in my .bashrc file (I use bash shell). Then I can observe it has been set correctly by typing echo $PATH.


But, when I log in again as a personal account, not "root", then I open my bash shell, and type echo $PATH, the path I just set in the "root" account is missing!?

So could anyone tell me what is wrong? Thanks!
  #2 (permalink)  
Old 07-23-2002
peter.herlihy peter.herlihy is offline
Registered User
  
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
Is the path change you made still around for the root user?
  #3 (permalink)  
Old 07-23-2002
auswipe's Avatar
auswipe auswipe is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Wide Awake Wylie, Texas
Posts: 535
Most likely you need to set the $PATH var in either /etc/profile for all users or in the ~/.profile for each individual user depending on their needs.
  #4 (permalink)  
Old 07-23-2002
yishen yishen is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 2
Yes, when I log in again as a "root", the path is still there.
  #5 (permalink)  
Old 07-23-2002
peter.herlihy peter.herlihy is offline
Registered User
  
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
I'm not very familiar with the .bashrc file - but it seems like you are only adding it to the profile for root when using bash. If you have a local version of this file for the other user....then add it there, otherwise change the .profile PATH found in the users home directory. See if this helps.

** O h I see auswipe has beaten me to it! **

Last edited by peter.herlihy; 07-23-2002 at 06:28 PM..
  #6 (permalink)  
Old 07-23-2002
auswipe's Avatar
auswipe auswipe is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Wide Awake Wylie, Texas
Posts: 535
Quote:
Originally posted by peter.herlihy

** O h I see auswipe has beaten me to it! **
Aha!

While you were down under (or at least off the coast of down under) I was on top of things!
Sponsored Links
Closed Thread

Bookmarks

Tags
linux, linux mandrake

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0