pixotec
2007-08-08 13:09:16 UTC
I want to set the environment variables
PATH=$PATH:/usr/local/jdk-1.5.0/bin
JAVA_HOME=/usr/local/jdk-1.5.0
globally.
for one user I can change therefor .profile like this:
PATH=/usr/local/jdk-1.5.0/bin:/bin:...
...
export PATH HOME TERM
but I want it for all users:
1. could change all .profile-files of all users: no thanx ;-( (and change
/etc/skel/.profile for future new users)
2. change /etc/login.conf ???
3. create /etc/profile, change all existing .profile of users (to source
/etc/profile) and change /etc/skel/.profile
4. change /etc/ksh.kshrc and create .kshrc sourcing /etc/ksh.kshrc for all
users (and in /etc/skel...)
IS THERE A EASY WAY (change only on central file for all users) TO SET THEM?
PATH=$PATH:/usr/local/jdk-1.5.0/bin
JAVA_HOME=/usr/local/jdk-1.5.0
globally.
for one user I can change therefor .profile like this:
PATH=/usr/local/jdk-1.5.0/bin:/bin:...
...
export PATH HOME TERM
but I want it for all users:
1. could change all .profile-files of all users: no thanx ;-( (and change
/etc/skel/.profile for future new users)
2. change /etc/login.conf ???
3. create /etc/profile, change all existing .profile of users (to source
/etc/profile) and change /etc/skel/.profile
4. change /etc/ksh.kshrc and create .kshrc sourcing /etc/ksh.kshrc for all
users (and in /etc/skel...)
IS THERE A EASY WAY (change only on central file for all users) TO SET THEM?
--
View this message in context: http://www.nabble.com/howto-set-global-environment-variable-%28e.g.-PATH%2C-JAVA_HOME%29-tf4236252.html#a12052849
Sent from the openbsd user - misc mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/howto-set-global-environment-variable-%28e.g.-PATH%2C-JAVA_HOME%29-tf4236252.html#a12052849
Sent from the openbsd user - misc mailing list archive at Nabble.com.