sshd and /usr/bin/zsh
Brad King
brad.king@kitware.com
Thu Apr 28 20:13:00 GMT 2005
Igor Pechtchanski wrote:
> On Thu, 28 Apr 2005, Brad King wrote:
>>I just upgraded cygwin and now I cannot login to the machine via ssh
>>unless I change /etc/passwd to use /bin/bash for my shell. If I use
>>/usr/bin/zsh then the login appears successful but no prompt ever shows
>>up.
> First off, it's always a good idea to read and follow
> <http://cygwin.com/problems.html>. Without the information requested
> there, we don't know much about your system.
Oops, sorry. My eyes scrolled through the left column of the web page
and found "FAQ". When the problem was not in the FAQ I went back and
scrolled up and found "Mailing Lists" before noticing the "Reporting
Problems" link. I suggest you add a link to
http://cygwin.com/problems.html from http://cygwin.com/lists.html in the
description of when posting to the main cygwin list is okay.
Anyway, I've attached the cygcheck.out this time. Thanks for responding
without it.
> One immediate thing to check is whether the /usr/bin mount is correct on
> your system: try changing your shell to /bin/zsh instead (/bin and
> /usr/bin should point to the same directory on Cygwin). If that works,
> fix your mounts.
Here is the important part of the mount output:
C:\cygwin\bin on /usr/bin type system (textmode)
C:\cygwin on / type system (textmode)
Clearly /bin and /usr/bin both go to c:/cygwin/bin.
> Otherwise, since bash works for you, I suspect some sort of a permission
> issue. Check the sshd logs.
The /var/log/sshd.log file is completely empty. Actively tailing it
during the login attempt still shows nothing.
> 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.
> 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.
-Brad
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050428/219586b1/attachment.ksh>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list