public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Achim Gratz <Stromeko@NexGo.DE>
To: cygwin@cygwin.com
Subject: Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd
Date: Tue, 19 Aug 2014 13:37:00 -0000	[thread overview]
Message-ID: <loom.20140819T152804-628@post.gmane.org> (raw)
In-Reply-To: <8761hphfps.fsf@Rainer.invalid>

Achim Gratz <Stromeko <at> nexgo.de> writes:
> I'm not making progress on this, but I've come to the conclusion that it
> is highly unlikely that the existence of the second (64bit) Cygwin
> installation has anything to do with the problem, first reported here:
> 
> http://thread.gmane.org/gmane.os.cygwin/147823
> 
> Meanwhile I've tried to make sure that the two installations don't
> interact by creating a separate privileged user for both of them, but
> that's not made a difference.
> 
> So let me re-phrase the question, given:
> 
> - Windows Server 2012R2 64bit running on hardware
> - Cygwin 32bit (latest snapshot from 2014-08-18 w/ AD integration)
> 
> can anybody confirm they have gotten sshd successfully running?  As far
> as I can debug this, the sshd I have installed goes through all the
> motions of checking and setting up the environment, but any process it
> then spawns to actually run my command or shell immediately exits.

I've run strace on both the 32bit and the 64bit sshd and here's the
difference between the two, right after sshd gets an exception 5 from the DC:

32bit
--- Process 5820, exception 00000005 at 75BF1D4D
43239 4372793 [waitproc] sshd 2400 pinfo::maybe_set_exit_code_from_windows:
pid 5820, exit value - old 0x0, windows 0x5, cygwin 0x8000500

64bit
--- Process 484, exception 00000005 at 00007FFA4F5D5BF8
 9907 4522411 [main] sshd 484 seterrno_from_win_error:
.../cygwin-snapshot-20140819-1/winsup/cygwin/sec_auth.cc:263
windows error 5
   36 4522447 [main] sshd 484 geterrno_from_win_error: windows error 5 ==
errno 13

The 64bit sshd then proceeds to fetch my credentials from the registry and
forks the command, while the 32bit winds down and does an exit(5).

Ideas?  I have done a passwd -R in both environments just in case these
would be stored in different registry keys.


Regards,
Achim.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2014-08-19 13:37 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-18 17:26 Achim Gratz
2014-08-19 13:37 ` Achim Gratz [this message]
2014-08-19 17:02   ` Corinna Vinschen
2014-08-19 17:21     ` Achim Gratz
2014-08-19 19:09       ` Corinna Vinschen
2014-08-19 19:21         ` Achim Gratz
2014-09-02 11:52 ` Achim Gratz
2014-09-02 14:07   ` Corinna Vinschen
2014-09-02 15:16     ` Achim Gratz
2014-09-02 15:38       ` Corinna Vinschen
2014-09-02 17:32         ` Achim Gratz
2014-09-03  7:17         ` Achim Gratz
2014-09-03 13:03           ` Achim Gratz
2014-09-03 13:37             ` Corinna Vinschen
2014-09-04 11:24               ` Achim Gratz
2014-09-04 12:28                 ` Corinna Vinschen
2014-09-04 14:12                   ` Achim Gratz
2014-09-04 14:59                     ` Achim Gratz
2014-09-05 11:16                     ` Corinna Vinschen
2014-09-05 11:56                       ` Corinna Vinschen
2014-09-05 18:17                         ` Achim Gratz
2014-09-03 13:26           ` Corinna Vinschen
2014-09-02 16:25     ` Achim Gratz
2014-09-02 19:14       ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20140819T152804-628@post.gmane.org \
    --to=stromeko@nexgo.de \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).