delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/28/17:39:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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" <doctor AT fruitbat DOT org>
To: Brad King <brad DOT king AT kitware DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: sshd and /usr/bin/zsh
In-Reply-To: <42713115.5010600@kitware.com>
Message-ID: <Pine.LNX.4.60.0504281403060.5136@gremlin.fruitbat.org>
References: <4270FD0F DOT 8030702 AT kitware DOT com> <Pine DOT GSO DOT 4 DOT 61 DOT 0504281356070 DOT 1962 AT slinky DOT cs DOT nyu DOT edu> <42713115 DOT 5010600 AT kitware DOT com>
MIME-Version: 1.0
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 <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
 	"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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019