Re: sshd permits logon using disabled user?

2019-01-28 Thread Bill Stewart
On Mon, Jan 28, 2019 at 2:49 PM Bill Stewart wrote: > I unjoined a Windows 7 machine from the domain and tested as follows: > > 1. Ran setup and installed cygwin > > 2. Ran sshd-host-config and answered "no" to install as service > > 3. Installed service using this command line: > > cygrunsrv -I

Re: sshd permits logon using disabled user?

2019-01-28 Thread Bill Stewart
On Mon, Jan 28, 2019 at 1:14 PM Bill Stewart wrote: > Thank you. I wanted to point out that I have not had a chance to test > using a non-domain computer yet. I will try that scenario as well. Hi Corinna, I unjoined a Windows 7 machine from the domain and tested as follows: 1. Ran setup and in

Re: sshd permits logon using disabled user?

2019-01-28 Thread Bill Stewart
On Mon, Jan 28, 2019 at 11:39 AM Corinna Vinschen wrote: > Along these lines I have an OpenSSH patch in the loop which reverts > the ssh-host-config script back to using the SYSTEM user, just as > in the olden Windows XP days. I'll send it upstream as soon as > Cygwin 3.0 is officially released.

Re: sshd permits logon using disabled user?

2019-01-28 Thread Corinna Vinschen
On Jan 28 10:18, Bill Stewart wrote: > On Mon, Jan 28, 2019 at 9:52 AM Corinna Vinschen > wrote: > > > > On Jan 28 08:02, Bill Stewart wrote: > > > On Mon, Jan 28, 2019 at 2:59 AM Corinna Vinschen > > > wrote: > > > > > > > Can you please test again with the latest snapshot from > > > > https://c

Re: sshd permits logon using disabled user?

2019-01-28 Thread Bill Stewart
On Mon, Jan 28, 2019 at 9:52 AM Corinna Vinschen wrote: > > On Jan 28 08:02, Bill Stewart wrote: > > On Mon, Jan 28, 2019 at 2:59 AM Corinna Vinschen > > wrote: > > > > > Can you please test again with the latest snapshot from > > > https://cygwin.com/snapshots/? The new S4U authentication metho

Re: sshd permits logon using disabled user?

2019-01-28 Thread Corinna Vinschen
On Jan 28 08:02, Bill Stewart wrote: > On Mon, Jan 28, 2019 at 2:59 AM Corinna Vinschen > wrote: > > > Can you please test again with the latest snapshot from > > https://cygwin.com/snapshots/? The new S4U authentication method > > used in this snapshot automatically applies the Windows account

Re: /dev/fd/N not synonymous with file descriptor N; it is on Linux

2019-01-28 Thread Corinna Vinschen
On Jan 28 15:15, Houder wrote: > On Sun, 27 Jan 2019 22:57:21, Corinna Vinschen wrote: > > > > On Jan 27 19:39, Houder wrote: > > > NO BLODA. > > > > > > Ok, for the record (as this is W7, i.e. pre-pre-W10 :-) > > > > > > Using my original STC again: (source code included below) > > > > > > - cr

Re: sshd permits logon using disabled user?

2019-01-28 Thread Bill Stewart
On Mon, Jan 28, 2019 at 2:59 AM Corinna Vinschen wrote: > Can you please test again with the latest snapshot from > https://cygwin.com/snapshots/? The new S4U authentication method > used in this snapshot automatically applies the Windows account rules so > in my testing the patch I applied orig

Re: /dev/fd/N not synonymous with file descriptor N; it is on Linux

2019-01-28 Thread Houder
On Sun, 27 Jan 2019 22:57:21, Corinna Vinschen wrote: > > On Jan 27 19:39, Houder wrote: > > NO BLODA. > > > > Ok, for the record (as this is W7, i.e. pre-pre-W10 :-) > > > > Using my original STC again: (source code included below) > > > > - create file (in /tmp) write-only, write "Hello, world

Weird mismatch between cdefs and stdatomic

2019-01-28 Thread LRN
This[0] and this[1]. One header checks for atomic C/CXX extensions *and* for the presence of a C++ compiler, while the other only checks for extensions. The result is that the _Atomic() macro is *not* defined in cdefs.h when compiled with C++, but the stdatomic.h atomic macros assume that it is, a

Re: sshd permits logon using disabled user?

2019-01-28 Thread Sam Edge
On 27/01/2019 22:10, Corinna Vinschen wrote: > On Jan 27 17:49, Sam Edge (Cygwin) wrote: >> On 25/01/2019 18:03, Bill Stewart wrote: >>> On Fri, Jan 25, 2019 at 10:48 AM Stephen Paul Carrier >>> wrote: >>> There are different paths to access and to completely disable the account you need

Re: cygwin/x fails to start with error loadlibrary failed with error 87: parameter is incorrect

2019-01-28 Thread Marco Atzeri
Am 28.01.2019 um 02:49 schrieb William J. Schilp, PhD: i've been using cygwin/x for many years and i did an installation to a new computer and when i try to start xwin i get a popup windows with the following error message: LoadLibrary failed with error 87: the parameter is incorrect. i star

Re: sshd permits logon using disabled user?

2019-01-28 Thread Corinna Vinschen
Bill, On Jan 25 11:03, Bill Stewart wrote: > On Fri, Jan 25, 2019 at 10:48 AM Stephen Paul Carrier > wrote: > > > There are different paths to access and to completely disable the account > > you need to close all of them. There are many reasons to disable some > > paths without disabling all p

Re: HEADSUP: SSHD service rename

2019-01-28 Thread Corinna Vinschen
On Jan 28 09:03, Steven Hartland wrote: > On 28/01/2019 09:00, Corinna Vinschen wrote: > > Since Microsoft decided to name their own sshd service "sshd", too, we > > don't have much choice than to rename our service after 16+ years. > > > > https://github.com/PowerShell/Win32-OpenSSH/issues/1331 >

Re: HEADSUP: SSHD service rename

2019-01-28 Thread Steven Hartland
On 28/01/2019 09:00, Corinna Vinschen wrote: Since Microsoft decided to name their own sshd service "sshd", too, we don't have much choice than to rename our service after 16+ years. https://github.com/PowerShell/Win32-OpenSSH/issues/1331 My patch has been accepted upstream so starting with Ope

HEADSUP: SSHD service rename

2019-01-28 Thread Corinna Vinschen
Since Microsoft decided to name their own sshd service "sshd", too, we don't have much choice than to rename our service after 16+ years. https://github.com/PowerShell/Win32-OpenSSH/issues/1331 My patch has been accepted upstream so starting with OpenSSH 8.0, newly installed Cygwin sshd services