From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15016 invoked by alias); 10 Oct 2017 14:38:53 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14412 invoked by uid 89); 10 Oct 2017 14:38:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.6 required=5.0 tests=AWL,BAYES_40,HTML_MESSAGE,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=exchanged, dan, Network, Command X-HELO: VSNSBIODMZEDG01.DFO-MPO.GC.CA Received: from vsnsbiodmzedg01.dfo-mpo.gc.ca (HELO VSNSBIODMZEDG01.DFO-MPO.GC.CA) (205.193.112.129) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Oct 2017 14:38:51 +0000 Received: from VSNSBIOHC01.ENT.dfo-mpo.ca (142.2.10.28) by VSNSBIODMZEDG01.DFO-MPO.GC.CA (142.2.40.129) with Microsoft SMTP Server (TLS) id 14.3.339.0; Tue, 10 Oct 2017 11:38:52 -0300 Received: from SVNSBIOMBX01.ENT.dfo-mpo.ca ([fe80::1ed:ea1:ebb5:e9f4]) by VSNSBIOHC01.ENT.dfo-mpo.ca ([::1]) with mapi id 14.03.0339.000; Tue, 10 Oct 2017 11:38:47 -0300 From: "Fournier, Danny G" To: "cygwin@cygwin.com" Subject: ERROR: A specified logon session does not exist. It may already have been terminated Date: Tue, 10 Oct 2017 14:38:00 -0000 Message-ID: <513AA0729B894545B2D793D01FFF8B6D4719B909@SVNSBIOMBX01.ENT.dfo-mpo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00096.txt.bz2 We recently upgraded Cygwin to 2.9.0(0.318/5/3) from 2.0.4(0.287/5/3) on Wi= ndows Server 2008 R2. Once we connect to the server using SSH, using a user where we have exchang= ed keys for, we call the following command: schtasks.exe /Run /TN "SomeJobName" This will give the following error: ERROR: A specified logon session does not exist. It may already have been t= erminated. We will also get the same error by simply invoking schtasks.exe without any= parameters, which is supposed to list the jobs currently configured on the= server. What we have done: -Most articles found state to change the following Local Policy to disabled= (which was set already): Network access: Do not allow storage of passwords and credentials for netwo= rk authentication -We have also added the user into the following Local Policy: Log on as a b= atch job and Log on as a service -The user has permission to read and execute schtasks.exe -We regenerated passwd and group files -Command prompts in Windows, running as the specific user, can run schtasks= .exe without any problem We are able to successfully call other executables: icacls.exe, robocopy.ex= e, sc.exe and even powershell.exe. We also tested against another server with Cygwin 2.7.0(0.306/5/3) and got = the same issue. Dan -- 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