Operating System - HP-UX
1833873 Members
3231 Online
110063 Solutions
New Discussion

Re: I want to change the system profile

 
Virginia OToole
Occasional Contributor

I want to change the system profile

I want to add something to the system profile so that everyone , existing users and new users, will execute the new profile.

Would I change the /etc/profile file or is there another version of this that I should change?

Thanks!
Ginny O'Toole
Data Device Corporation
4 REPLIES 4
Steve Steel
Honored Contributor

Re: I want to change the system profile

Hi

/etc/profile is fine

Make a copy first in case of errors


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Helen French
Honored Contributor

Re: I want to change the system profile

Hi,

Yes, you can make the changes to /etc/profile. This is the global profile for all Bourne shell user (/usr/bin/sh).

For C shell users, you need to make the changes in /etc/csh.login (global profile)

/$user_home/.profile is the local profile for each user.

HTH,
Shiju
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor

Re: I want to change the system profile

Hi Virginia,

to set a standard profile for all user, you should edit /etc/profile and add the env over there. this file is executed for all the users. you may add some env variables to /etc/cshrc if you have users logging in using "c shell".

hope this helps.

Regds
Corthouts Carlo
Valued Contributor

Re: I want to change the system profile

Hi,

/etc/profile is the way to go.
But if possible stick with the ~user/.profile (users homedir).