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 Date: Thu, 28 Apr 2005 14:37:41 -0700 (PDT) From: "Peter A. Castro" To: Brad King cc: cygwin AT cygwin DOT com Subject: Re: sshd and /usr/bin/zsh In-Reply-To: <42713115.5010600@kitware.com> Message-ID: References: <4270FD0F DOT 8030702 AT kitware DOT com> <42713115 DOT 5010600 AT kitware DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes On Thu, 28 Apr 2005, Brad King wrote: > Igor Pechtchanski wrote: >> On Thu, 28 Apr 2005, Brad King wrote: [snip] >> Also, try opening a "system-owned shell" >> (Google for it to see how), and from there run >> >> login youruser > > That works when the shell is /bin/bash. When I switch to /bin/zsh or > /usr/bin/zsh, I get: > > Last login: Thu Apr 28 14:43:26 on console > > and then the same hang behavior as with ssh. It's rare that the shell hangs like that, unless it's stuck waiting for a subshell that died in a strange way. >> To follow up on my hunch, you might want to run "cygcheck /usr/bin/zsh" >> and check the permissions on all the DLLs listed by that command. > > Running the cygcheck /usr/bin/zsh.exe from the system shell or a user shell > gives > > C:/cygwin/bin/zsh.exe > C:/cygwin/bin\cygwin1.dll > C:\WINDOWS\system32\ADVAPI32.DLL > C:\WINDOWS\system32\ntdll.dll > C:\WINDOWS\system32\KERNEL32.dll > C:\WINDOWS\system32\RPCRT4.dll > C:/cygwin/bin\libzsh-4.2.4.dll > C:/cygwin/bin\cygncurses-8.dll > C:/cygwin/bin\cygiconv-2.dll > > It should be noted that I can run zsh once I have a bash prompt. > Running zsh inside an rxvt works also. It is only when the initial login > uses zsh (through ssh or system shell login) that it fails. From the bash shell, did you just run zsh as a subshell or did you try running it as a login shell (eg: zsh -l)? As another experiment, could you enable the rlogin service ('login' in /etc/inetd.conf) and then start inetd and try using rlogin to see if zsh hangs there as well? You'll need to install the inetutils package, run 'inetd --install-as-service', then 'net start inetd', then try rlogin from another machine. I'd like to narrow it down to either a problem with ssh interaction or perhaps a problem with the system/user profiles in /etc/z* or your local .z* profiles. Also, be advised that as of zsh-4.2.4, /etc/zprofile has been updated to parallel the base /etc/profile. The update would only apply, however, if you did not have a previous, custom, zprofile. A copy of the updated zprofile is in /usr/share/doc/zsh-4.2.4/StartupFiles/etc I'll see if I can reproduce your setup, though I only have W2K and not XP (well, that's not quite true... I *could* setup an XP instance, but I probably *won't* :). Is there anything special with your sshd setup? Did you customize anything? Is the service run under 'SYSTEM' or under your userid? Wait... your using a domain account aren't you? Hmm... That might complicate things. Are you logging in to your domain account via ssh or into a local machine account? > -Brad -- Peter A. Castro or "Cats are just autistic Dogs" -- Dr. Tony Attwood -- 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/