LinuxQuestions.org
Visit Jeremy's Blog.
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 11-07-2012, 03:57 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
root user profile


I use redhat 3 now , and have installed a redhat 5 , I want to migrate it to this new server .

I have successfully migrated the user to new server , but I just found the the PATH setting ( echo $PATH) of root in both servers are different, it seems something is missing in migration , ( only root user have problem , other users is ok ) I have already copy all user home directory to new server include /root directory , /etc/profile but still not , can advise what is wrong ?

thanks.
 
Old 11-07-2012, 04:01 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Assuming you mean RHEL3 => RHEL5, they are 2 Major versions apart... I'd expect some differences.
If you are absolutely sure you need a certain dir in root's PATH, then add it to their .bash_profile.
I certainly wouldn't have copied over /etc/profile.

Last edited by chrism01; 11-07-2012 at 06:08 PM. Reason: - => _ for bash_profile
 
Old 11-07-2012, 09:28 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ust View Post
I use redhat 3 now , and have installed a redhat 5 , I want to migrate it to this new server .
I have successfully migrated the user to new server , but I just found the the PATH setting ( echo $PATH) of root in both servers are different, it seems something is missing in migration , ( only root user have problem , other users is ok ) I have already copy all user home directory to new server include /root directory , /etc/profile but still not , can advise what is wrong ?
Did you copy over root's .profile and/or .bashrc/.bash_profile?

And AGAIN, have you contacted Red Hat support???? You continue to post questions regarding RHEL in a corporate environment, but have yet to take this advice, or even acknowledge you got it. If you're using RHEL, you're paying for support and access to the Red Hat network. If you're NOT paying, then you SHOULD NOT BE USING IT. All you are managing to do then, is to put servers into production, that have no chance of being updated/patched, and you will wind up with buggy servers with security problems. Access to the Red Hat network is pay-for, and addresses that. Otherwise, load CentOS.
 
  


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
login as other user using shell doesn't load the profile for that user ukiome Linux - General 11 12-19-2009 05:56 AM
system profile vs user profile bonito SUSE / openSUSE 3 06-28-2006 01:02 PM
Load kde profile from /mnt/removable/user instead of /home/user preacher.ca Linux - General 3 12-02-2005 03:00 PM
WindowMaker Profile Change - Root to User SML Linux - Newbie 1 03-16-2004 03:03 PM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM

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

All times are GMT -5. The time now is 03:33 AM.

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