Environment variables /etc/skel/local.profile and /etc/skel/.profile
Hi
I have a problem to provide the working environment for ALL THE USERS :/ with all the files in this directory:
*/etc/skel/*
In Oracle Documentation says: You can use these files ( */etc/skel/local.profile* ) as a starting point and then modify them to create a standard set of files
that provide the work environment common to all users. Defines the user's environment at login.
I edit the file */etc/skel/.profile* for put the JAVA_HOME variable for all the users of this way
nano /etc/skel/.profile
export JAVA_HOME=/usr/bin/java *#I added this variable*
export PATH=/usr/bin:/usr/sbin
if [ -f /usr/bin/less ]; then
export PAGER="/usr/bin/less -ins"
elif [ -f /usr/bin/more ]; then
export PAGER="/usr/bin/more -s"
fi
case ${SHELL} in
*bash)
typeset +x PS1="\u@\h:\w\\$ "
;;
esac
-------
Later I check the parameters to add the user
useradd -D
group=staff,10 project=default,3 basedir=/export/home
skel=/etc/skel shell=/usr/bin/bash inactive=0
expire= auths= profiles= roles= limitpriv=
defaultpriv= lock_after_retries=
adduser -m testuser
passwd testuser
I log on as testuser and check if the variable JAVA_HOME is available, but no.
Why it can not see that variable as available? THAN YOU FOR YOUR HELP