>>>>>>>>>>>>>>>>>>>>> Original Request >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Hello Sun-managers
I am having trouble with .kshrc not be run after starting Openwindows.
We have two machines (goodhost and badhost) both running Solaris 2.3.
We have two users (gooduser and baduser) each using (goodhost and badhost).
Both machines are nfs cross-mounted so either user can use either machine.
Both users use Korn shell and have .kshrc files.
Good user's aliases are the same as bad user's aliases.
When both good user and bad user use goodhost then .kshrc is processed and
both users have their aliases. When both good user and bad user use
bad_host then .kshrc is used at login time but disappears as soon as
Openwindows is started (ie 5 seconds after login).
I have tried nfs mounting /usr/openwin from goodhost to badhost but the
problem remains on badhost.
Why would one machine process .kshrc and the other machine not?
Thanks, and yes I will summarize.
>>>>>>>>>>>>>>>>>>>>> Original Request >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Solution:
/etc/profile or users' .profile
Not only do you need ENV=$HOME/.kshrc
but you ALSO need export ENV
Since without the export only the initial shell has the aliases. All other
subshells (ie the ones in openwindows) will not have them unless ENV is
exported.
Special thanks to the following people:
Ric Anderson ric@Artisoft.COM - first one
Ronald Henderson rwh@atmos.albany.edu
Mark Anderson manderso@mitre.org
Other possibilities from pluto!perryh@qiclab.scn.rain.com
- Make sure the userids for all users are the same on all machines.
------------------------------------------------------------------------------
Robert J Wolf, Sun System Admin. DCIEM, CFB Toronto
Robert.Wolf@dciem.dnd.ca PO Box 2000 1133 Sheppard Avenue West
North York (Toronto), Ont., Canada M3M 3B9
Internet: 192.16.207.3 Phone: (416)635-2073 FAX: (416)635-2104
"Capitalism with environmental ethics will benefit the entire world."
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:01 CDT