I cant get my path to set.
I have this in etc/profile
PATH=/usr/sbin:/usr/bin:/usr/openwin/bin:.
export PATH
I have this in the user .profile
PATH=/usr/sbin:/usr/bin:/usr/openwin/bin:.
export PATH
If I logon as the user the profile sets path as:
$ echo $PATH
/usr/bin:
If I then do . .profile the path is updated to the correct
$ . .profile
$ echo $PATH
/usr/sbin:/usr/bin:/usr/openwin/bin:.
$
What am I doing wrong? My understanding is that the etc/profile is executed for every user logging on and then the users .profile is executed. Am I missing something else?
I would appreciate any help, suggestions etc...
I have this in etc/profile
PATH=/usr/sbin:/usr/bin:/usr/openwin/bin:.
export PATH
I have this in the user .profile
PATH=/usr/sbin:/usr/bin:/usr/openwin/bin:.
export PATH
If I logon as the user the profile sets path as:
$ echo $PATH
/usr/bin:
If I then do . .profile the path is updated to the correct
$ . .profile
$ echo $PATH
/usr/sbin:/usr/bin:/usr/openwin/bin:.
$
What am I doing wrong? My understanding is that the etc/profile is executed for every user logging on and then the users .profile is executed. Am I missing something else?
I would appreciate any help, suggestions etc...