Operating System - HP-UX
1833684 Members
4085 Online
110062 Solutions
New Discussion

Re: Duplicate HP-UX 11.i Environment

 
mohnkern
Advisor

Duplicate HP-UX 11.i Environment

We've got two machines running HP-X 11.i and we want to duplicate the
"default environment" from one machine to another.

In particular we want the default to match on them: 1. Path 2. Default Prompts 3. Environment Variables

We've found /etc/profile and /etc/PATH however there isn't /etc/profile.d (/etc/d.profile points to /skel/profile). Are there any
other files we should be looking for?

Scott Mohnkern
7 REPLIES 7
Hasan  Atasoy
Honored Contributor

Re: Duplicate HP-UX 11.i Environment

hi scott;

for root user
/.profile

Hasan.
mohnkern
Advisor

Re: Duplicate HP-UX 11.i Environment

Thanks for the quick response. Are there any other files that cover all users (not just the root user?)
Steven E. Protter
Exalted Contributor

Re: Duplicate HP-UX 11.i Environment

Shalom,

For the root user, I'd use .profile from root as a template.

Part of /etc/skel should be a default template for .profile of normal users.

If you have differing user types, go ahead and create skel2 or skel3 etc.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
mohnkern
Advisor

Re: Duplicate HP-UX 11.i Environment

Are the files in /etc/skel processed on a non root user login, or are they just templates to copy from?
Patrick Wallek
Honored Contributor

Re: Duplicate HP-UX 11.i Environment

The /etc/skel files are the templates used to create .profile, etc. when users are created.

/etc/PATH and /etc/profile are good starting points for ALL users, assuming you are using the POSIX shell (/usr/bin/sh or /sbin/sh) and/or Korn Shell (/usr/bin/ksh or /sbin/ksh).

If you are using the C-shell, then that's a whole different set of files.
mohnkern
Advisor

Re: Duplicate HP-UX 11.i Environment

Default for all users is ksh. I was pretty sure that I had almost everything, but was hunting around to see if there might be anything else.
mohnkern
Advisor

Re: Duplicate HP-UX 11.i Environment

Found solution.