Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20040819124722.51532.qmail@web11706.mail.yahoo.com> Date: Thu, 19 Aug 2004 05:47:22 -0700 (PDT) From: Erik Weibust Reply-To: erik AT weibust DOT net Subject: Re: strange login behavior To: Cygwin List In-Reply-To: <6.1.0.6.0.20040818174729.03416c10@pop.prospeed.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes I have resolved both problems. The first is strange and might be a bug. The problem was that after adding a new env var in Windows it wasn't getting added to my PATH in Cygwin when I ssh'ed in. The only way I could get the var added in was by rebooting my machine. Does the sshd process cache my Windows env vars when it starts? That's all I can come up with because I never had a problem when I would just start a session with cygwin.bat. The second problem with $HOME was just because I made a stupid mistake and added a %HOME% in Windows. --- Larry Hall wrote: > At 10:14 AM 8/18/2004, you wrote: > >I am experiencing some strange login behavior. First, some > bachground > >on my situation. I prefer the putty terminal over the MS cmd window > >that cygwin.bat uses. So I use putty and ssh into my cygwin > account. > > > >Two problems. One, when I ssh into my acct I'm not getting the > latest > >PATH entries I've entered via Windows. I'll show some of my > .bashrc: > > > >JAVA_HOME=~/java/j2sdk1.4.2_04 > >ANT_HOME=~/java/apache-ant-1.6.1 > >CATALINA_HOME=~/java/jakarta-tomcat-5.0.25 > >MYSQL_HOME=~/mysql > > > >PATH=$PATH:/cygdrive/c/Program\ > >Files/vim/vim61:$JAVA_HOME/bin:$ANT_HOME/bin:$CATALINA_HOME/bin:$MYSQL_HOME/bin > > > >When I echo my PATH via a MS cmd window I get: > >H:\>echo %PATH% > >C:\java\Sun\AppServer\BIN;C:\java\apache-ant-1.6.1\BIN;c:\mysql\bin;C:\java\j2sd > >k1.4.2_04\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~ > >1\CA\SHARED~1\SCANEN~1;C:\PROGRA~1\CA\ETRUST~1; > > > >So I would expect that Sun\AppServer entry to show up in my > >Putty/Cygwin window. Any ideas on this? > > > Does it work with 'ssh'? It works fine for me with 'ssh', even with > pubkey > authentication. ;-) > > > >Second issue (this might should be a seperate email) is related to > the > >Cygwin shortcut that runs the cygwin.bat. For some reason my > >.bash_profile/.bashrc aren't getting excuted. And even worse my > $HOME > >is very different. > > > >In the MS cmd window (via cygwin shortcut) I get: > >erikweibust AT DALEWEIBUST [/home/erikweibust] $ cd > >erikweibust AT DALEWEIBUST [~] $ pwd > >/cygdrive/c/java/source > >erikweibust AT DALEWEIBUST [~] $ echo $HOME > >/cygdrive/c/java/source > > > >And then in the putty window I get: > >erikweibust AT DALEWEIBUST [~] $ cd > >erikweibust AT DALEWEIBUST [~] $ pwd > >/home/erikweibust > >erikweibust AT DALEWEIBUST [~] $ echo $HOME > >/home/erikweibust > >erikweibust AT DALEWEIBUST [~] $ > > > >Anybody have any ideas? I felt like these might be loosely related. > > > Quite possibly. Do you set $HOME in your Windows environment? $HOME > will be set to the home directory listed in '/etc/passwd' for > 'erikweibust' when you "login" to via secure shell. > > > -- > Larry Hall http://www.rfk.com > RFK Partners, Inc. (508) 893-9779 - RFK Office > 838 Washington Street (508) 893-9889 - FAX > Holliston, MA 01746 > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > ===== Erik Weibust http://erik.weibust.net -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/