Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-05 Thread Corinna Vinschen
On Sep 4 14:12, Achim Gratz wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: I couldn't start cygserver as a service with (just) the built DLL in place. No idea why. The patch just adds debug output to strace ouptput, nothing else. Whatever. I've installed all the

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-05 Thread Corinna Vinschen
On Sep 5 13:16, Corinna Vinschen wrote: On Sep 4 14:12, Achim Gratz wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: I couldn't start cygserver as a service with (just) the built DLL in place. No idea why. The patch just adds debug output to strace ouptput,

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-05 Thread Achim Gratz
Corinna Vinschen writes: For simplicity I added this experimental patch to the snapshot I just uploaded to https://cygwin.com/snapshots/. I'm ooO so no updates from me on this until I get back. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Factory and

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-04 Thread Achim Gratz
Corinna Vinschen corinna-cygwin at cygwin.com writes: You already built your own Cygwin DLL, right? What you could do is to do some good old printf debugging. First let's try to find out if it's really one of the NetUser calls: It looks like I need to install more than the DLL to make this

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-04 Thread Corinna Vinschen
On Sep 4 11:23, Achim Gratz wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: You already built your own Cygwin DLL, right? What you could do is to do some good old printf debugging. First let's try to find out if it's really one of the NetUser calls: It looks like I need

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-04 Thread Achim Gratz
Corinna Vinschen corinna-cygwin at cygwin.com writes: I couldn't start cygserver as a service with (just) the built DLL in place. No idea why. The patch just adds debug output to strace ouptput, nothing else. Whatever. I've installed all the binaries from that build and things work

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-04 Thread Achim Gratz
Achim Gratz Stromeko at NexGo.DE writes: Not the token privileges, I don't think so. But I'm not sure how to check. If I run the sshd as the user trying to log in, then it works; regardless of whether the user has administrative privileges or not or with or without privilege separation enabled

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-03 Thread Achim Gratz
Corinna Vinschen corinna-cygwin at cygwin.com writes: Don't use privilege separation, then the non-privileged sshd user won't matter at all. Privsep on Cygwin is only half-useful on Cygwin anyway, if at all. I've switched privilege separateion off completely, but no dice. The Access Denied

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-03 Thread Achim Gratz
Achim Gratz Stromeko at NexGo.DE writes: The strace shows that it doesn't even *try* to start bash, but it's entirely unclear why. Is it possible to run sshd in gdb? I can attach the debugger but I didn't manage to break into something useful (or anything at all, really). However, the

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-03 Thread Corinna Vinschen
On Sep 3 07:17, Achim Gratz wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: Don't use privilege separation, then the non-privileged sshd user won't matter at all. Privsep on Cygwin is only half-useful on Cygwin anyway, if at all. I've switched privilege separateion off

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-03 Thread Corinna Vinschen
On Sep 3 13:02, Achim Gratz wrote: Achim Gratz Stromeko at NexGo.DE writes: The strace shows that it doesn't even *try* to start bash, but it's entirely unclear why. Is it possible to run sshd in gdb? I can attach the debugger but I didn't manage to break into something useful (or

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-02 Thread Achim Gratz
Achim Gratz Stromeko at nexgo.de writes: - Windows Server 2012R2 64bit running on hardware - domain member - Cygwin 32bit (latest snapshot from 2014-08-31 w/ AD integration) can anybody confirm they have gotten sshd successfully running? As far as I can debug this, the sshd I have

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-02 Thread Corinna Vinschen
On Sep 2 11:51, Achim Gratz wrote: Achim Gratz Stromeko at nexgo.de writes: - Windows Server 2012R2 64bit running on hardware - domain member - Cygwin 32bit (latest snapshot from 2014-08-31 w/ AD integration) can anybody confirm they have gotten sshd successfully running? As far as

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-02 Thread Achim Gratz
Corinna Vinschen corinna-cygwin at cygwin.com writes: I have no idea what could be wrong in your environment, sorry. Me neither. I've set all three Cygwin environments up exactly the same way, using identical users and command lines (just different service names, obviously). I still have to

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-02 Thread Corinna Vinschen
On Sep 2 15:16, Achim Gratz wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: I have no idea what could be wrong in your environment, sorry. Me neither. I've set all three Cygwin environments up exactly the same way, using identical users and command lines (just different

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-02 Thread Achim Gratz
Corinna Vinschen corinna-cygwin at cygwin.com writes: I have no idea what could be wrong in your environment, sorry. Some more information: up until the check for /etc/nologin everything works. Things fall apart when sshd tries to switch to the user logging on. I've traced this again, sshd

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-02 Thread Achim Gratz
Corinna Vinschen writes: Don't use privilege separation, then the non-privileged sshd user won't matter at all. Privsep on Cygwin is only half-useful on Cygwin anyway, if at all. As for the local cyg_server account, I'm not sure. Usually, a local machine account has no or only limited

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-09-02 Thread Corinna Vinschen
On Sep 2 16:24, Achim Gratz wrote: Corinna Vinschen corinna-cygwin at cygwin.com writes: I have no idea what could be wrong in your environment, sorry. Some more information: up until the check for /etc/nologin everything works. Things fall apart when sshd tries to switch to the user

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-08-19 Thread Achim Gratz
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:

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-08-19 Thread Corinna Vinschen
On Aug 19 13:37, Achim Gratz wrote: 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 0005 at 75BF1D4D 43239 4372793 [waitproc] sshd 2400

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-08-19 Thread Achim Gratz
Corinna Vinschen writes: This is a call to the Win32 API call NetUserGetGroups creating an exception due to an access denied. The difference between 32 and 64 bit is probably a result of the differences in exception handling, and given that an ExceptionCode 5 will be ignored by Cygwin's

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-08-19 Thread Corinna Vinschen
On Aug 19 19:21, Achim Gratz wrote: Corinna Vinschen writes: This is a call to the Win32 API call NetUserGetGroups creating an exception due to an access denied. The difference between 32 and 64 bit is probably a result of the differences in exception handling, and given that an

Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-08-19 Thread Achim Gratz
Corinna Vinschen writes: It doesn't matter if it's the same. An exception is generated and 32 and 64 bit versions react differently for whatever reason. It's also really unnecessary to generate two accounts for this. I know that now. But at one point I was wondering if somehow the fact that

Windows Server 2012R2 64bit and 32bit Cygwin sshd

2014-08-18 Thread Achim Gratz
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