LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-28-2005, 04:42 PM   #1
lucasrj
LQ Newbie
 
Registered: Apr 2004
Posts: 22

Rep: Reputation: 0
How do I change ROOT's $PATH permanently?


Hello, sorry for such a newb question.

I have a fresh copy of Suse 9.2. I just installed "checkinstall" and it put the two binary files in /usr/local/sbin (my path points to /usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin only)

How do I permanently add that directory to Root's path? There is not a .profile file in my /root directory for me to edit or play with. Any help would be greatly appreciated.

Thanks,

Robert
 
Old 01-28-2005, 05:10 PM   #2
linuxLuser
Member
 
Registered: Jan 2005
Distribution: Gentoo
Posts: 111

Rep: Reputation: 16
Well, you need to check the system-wide script that is run when a user logs on: /etc/profile. Usually there's some kind of if-statement in there that checks if it is the root user that logged in, and if so, it sets the path accordingly; if not, it sets a different path. You could just add what you need there. Or you could probably add what you need into the .bashrc file in root's home directory. If the .bashrc file doesn't exist, you can just make it.

Of course, there's the manual way:
Code:
# export PATH=$PATH:/usr/local/sbin
which is the same thing you'd put in .bashrc if you wanted.

-- the dudeman
 
Old 01-28-2005, 10:10 PM   #3
lucasrj
LQ Newbie
 
Registered: Apr 2004
Posts: 22

Original Poster
Rep: Reputation: 0
Wow, thank you so much. Thats what I need to know. I've been tinkering with Slackware off and on learning a few things about Linux, and Suse is alot different as far as how things are set up. (from my lack of experience) Again, thanks friend.

-Robert
 
Old 01-29-2005, 09:31 AM   #4
linuxLuser
Member
 
Registered: Jan 2005
Distribution: Gentoo
Posts: 111

Rep: Reputation: 16
I like the quote on the end of your posts. I showed a few friends that one and laughed pretty good.

--the dudeman
 
  


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
Path of xinit; window managers location; root's home; frankie_DJ Solaris / OpenSolaris 4 08-02-2005 03:46 AM
Can't permanently change path SuperRunt Linux - Newbie 11 02-02-2005 11:59 PM
How to set root's PATH? gepesz Linux - Software 2 08-26-2004 11:10 AM
root's PATH incomplete when upgrading from Woody avram Debian 6 01-29-2004 11:21 PM
How to set PATH permanently chandhru Linux - Newbie 3 09-24-2002 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 07:53 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