Operating System - HP-UX
1833755 Members
2993 Online
110063 Solutions
New Discussion

Re: Duplicating environment in Hp-UX 11.i

 
mohnkern
Advisor

Duplicating environment in Hp-UX 11.i

We have two HP-UX 11.i boxes that we're trying to have matching user environments. We've copied /etc/profile and /etc/PATH and that seems to have gotten us 90% of the way there.

However, on one of the boxes, when we open up a terminal window the command line has full vi editing level functions, and the other, it doesn't. We can't figure out why.

Any suggestions?
12 REPLIES 12
Hasan  Atasoy
Honored Contributor

Re: Duplicating environment in Hp-UX 11.i

hi ;
also copy user profile . it is located at ~/username/.profile


Hasan.
mohnkern
Advisor

Re: Duplicating environment in Hp-UX 11.i

Would this be for each individual user?

mohnkern
Advisor

Re: Duplicating environment in Hp-UX 11.i

What about for root, when there is no home directory for root?
David Bellamy
Respected Contributor

Re: Duplicating environment in Hp-UX 11.i

Yes it would be for each user. And root does have a home directory it is called /
Pete Randall
Outstanding Contributor

Re: Duplicating environment in Hp-UX 11.i

Even root should have a home directory specified (like /root, for example), but, if none has been specified, root's profile will be located in /.profile.


Pete

Pete
Hasan  Atasoy
Honored Contributor

Re: Duplicating environment in Hp-UX 11.i

there is .profile root also.

cd ~/root
ls -al .profile

you will see it.


Hasan
Dennis Handly
Acclaimed Contributor

Re: Duplicating environment in Hp-UX 11.i

You shouldn't be copying /etc/PATH since that depends on what's installed. Unless you have manually customized it.
mohnkern
Advisor

Re: Duplicating environment in Hp-UX 11.i

the /etc/PATH is manually customized, with additional application in it.
Patrick Wallek
Honored Contributor

Re: Duplicating environment in Hp-UX 11.i

You asked a very similar question earlier this month.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1177460
mohnkern
Advisor

Re: Duplicating environment in Hp-UX 11.i

Solution found by copying /etc/.profile /etc/path and .profiles from / and ~/username/.profile for each user.
Dennis Handly
Acclaimed Contributor

Re: Duplicating environment in Hp-UX 11.i

>the /etc/PATH is manually customized, with additional application in it.

Ideally, that application should have a control script to automatically add itself to /etc/PATH.
mohnkern
Advisor

Re: Duplicating environment in Hp-UX 11.i

You'd think these COTS applications would do that, but unfortunately, we've found some that don't.