1833875 Members
1903 Online
110063 Solutions
New Discussion

Re: environment setting

 
SOLVED
Go to solution
Teck Sim
Frequent Advisor

environment setting

Before a cold-install from HP-UX 10.20 to HP-UX 11 32-bit, when I logon to server A:

HP-UX aquila B.10.20 U 9000/869 (ttyp1)

login: tsim
password:xxxx

[SMD1:/home/tsim]>

After the cold-install to HP-UX 11, when I log on to the system, I was only allow to login as root, but not tsim. When I login as tsim,

login: tsim
Password: xxxx
Login incorrect
login:

Is there any scripts at all or something I can use to recreate the old environment setting, such as login as tsim, do a su - oracle and do a cd $ORACLE_HOME, svrmgrl, etc.?

Where can I find "those" files in another similar server B and do a rcp to this server A?

Please help. Thanks.


8 REPLIES 8
Mark Greene_1
Honored Contributor
Solution

Re: environment setting

from you last backup of the server under 10.20, restore the file /home/tsim/.profile. You may also need to restore /etc/profile, but I'd restore that to a new file name and then merge any differences into the existing 11.0 /etc/profile.

HTH
mark
the future will be a lot like now, only later
Pete Randall
Outstanding Contributor

Re: environment setting

Sounds like you need to restore your /etc/passwd file.

Pete

Pete
steven Burgess_2
Honored Contributor

Re: environment setting

Hi Teck

Do you have a backup on tape of your old environment settings for your user? You could recreate the user then restore all his settings in his /home/tsim/.profile

HTH

Steve
take your time and think things through
Sandip Ghosh
Honored Contributor

Re: environment setting

You need to copy the /etc/passwd and /etc/group file to login to the server. Then you need the individual .profile files for each users, may be you need to copy the home directories of the users also.

Sandip
Good Luck!!!
Rodney Hills
Honored Contributor

Re: environment setting

Before a cold install you should have done a backup of /home as well as some other key directories. Building a hpux system is easy- Carrying over those things that were on a previous system takes planning.

If you have a backup of /home, then you can restore /home/tsim.

You will then need to create an entry in /etc/passwd for tsim.



-- Rod Hills
There be dragons...
V. V. Ravi Kumar_1
Respected Contributor

Re: environment setting

hi,

restore /etc/passwd, /etc/group and /etc/profile from the old backup.

regds
Never Say No
MANOJ SRIVASTAVA
Honored Contributor

Re: environment setting

Hi Teck

Genrally the env is set by the .profile file which is excuted in the home directory of the user , ie su - tsim will take you to the home directory of the user , than you can ftp or copy .rpofle from there to the user.


Manoj Srivastava
Teck Sim
Frequent Advisor

Re: environment setting

I have restored /home/tsim/..., /home/oracle/..., and all work well. I could do a cd $ORACLE_HOME, su - oracle....., but I was unable to ping localhost or loopback. But I could ping from other servers to this server. So I made changes to /etc/rc.config.d/namesvrs:
from NIS_CLIENT="1" to NIS_CLIENT="0". Now I am able to ping localhost, and loopback, but I cannot login as tsim anymore, except as root.
What's going on here?