Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Environment variables /etc/skel/local.profile and /etc/skel/.profile

user13814055Jun 22 2012 — edited Jun 23 2012
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2012
Added on Jun 22 2012
1 comment
731 views