LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2003, 04:29 PM   #1
charlie123
Member
 
Registered: Jan 2003
Location: S.E. England
Distribution: Redhat 8.0
Posts: 64

Rep: Reputation: 15
$PATH problem


ok, i did the redhat update thing and for some reason /sbin was removed from my $PATH. so i followed the instructions that can be found anywhere and edited /etc/profile and /root/.bash_profile by adding

export PATH=$PATH:/sbin at the end, but it still wont work. if i type that in manually at the command prompt then all is fine, except that it forgets it in the next session. i dont understand what im doing wrong but i cant get the damn thing to stick .

any help would be greatly appreciated.

CHarlie
 
Old 01-15-2003, 04:46 PM   #2
tunedLow
Member
 
Registered: Sep 2001
Location: Salt Lake City
Distribution: Slackware 8.1
Posts: 133

Rep: Reputation: 15
Do you mean that /sbin was removed from your root path? Because I don't believe you should have it in a users path. If you're having trouble making it stick, manually manipulate the .bash_profile and fix it there.
 
Old 01-15-2003, 04:47 PM   #3
charlie123
Member
 
Registered: Jan 2003
Location: S.E. England
Distribution: Redhat 8.0
Posts: 64

Original Poster
Rep: Reputation: 15
from what i can tell, if i login as root, then use su to change user, roots $PATH follows me. if i login as a user, then su and become root, users $PATH follows me. i dont know if this is suppose to happen, but i swear it never use to (before i updated my system).
however the problem still stands that i cant successfully change the average users $PATH, ive read everywhere that /etc/profile is where i change everyone but roots $PATH, yet when i do this, then login as a user, /sbin doesnt appear on my echo $PATH.
does anyone else but root need access to /sbin, cos if not then it dont matter too much.

cheers

CHarlie
 
Old 01-15-2003, 04:50 PM   #4
charlie123
Member
 
Registered: Jan 2003
Location: S.E. England
Distribution: Redhat 8.0
Posts: 64

Original Poster
Rep: Reputation: 15
oh, it would appear that there isnt actually a problem then, if it is suppose to be this way. silly me, i remembered running lilo from a user other than root, and i wondered why it didnt work this time, so i assumed it was because /sbin had been removed from my PATH.

never mind, cheers anyway.

 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with $PATH halfpower Linux - Newbie 4 08-30-2005 12:49 PM
qt path problem wmeler Linux - Software 0 05-13-2004 10:20 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM
$PATH problem (probably) dave bean Slackware 9 02-17-2004 06:43 PM
PATH problem jhansman Linux - Newbie 18 08-24-2003 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration