delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/10/10/10:39:09

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=vF7
09FVCsaN6Bwbzb8Uv+9zAn/z6D2jSYE4JieY/sHGZG9VpEsdYOKa2LFMYGAKZvkN
AkrnD4l3Us3lPwvPcZoK7T21j18Zhr1PFX7KZkIealcg0oP7mBlGUJQWE0+i05Zz
ut4gT+uIqBVAoLupkdwlsc8iZKX+Hcl1zBwx8j/8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=Diaz9Dasc
4U0EuwoayYMaURbMZs=; b=pbJFpu0dALjmjYUxw1FUxuEoSpB9nrTZDP6qieiyX
m7Faup623gOhxWuyZaOSYnj0nyenApYkwAdtX9p+0OfsZsI+lRQjbpW2yN0IBI2z
xGndpxH6/PT4m/VMn4uu7b4Wdw/vTtxWIV3be+i9lFTMgZppHi/Ro+wnoK2XCmnW
P0=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
From: "Fournier, Danny G" <Danny DOT Fournier AT dfo-mpo DOT gc DOT ca>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: ERROR: A specified logon session does not exist. It may already have been terminated
Date: Tue, 10 Oct 2017 14:38:46 +0000
Message-ID: <513AA0729B894545B2D793D01FFF8B6D4719B909@SVNSBIOMBX01.ENT.dfo-mpo.ca>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v9AEd8OA005385

We recently upgraded Cygwin to 2.9.0(0.318/5/3) from 2.0.4(0.287/5/3) on Windows Server 2008 R2.

Once we connect to the server using SSH, using a user where we have exchanged 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 terminated.

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 network authentication

-We have also added the user into the following Local Policy: Log on as a batch 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.exe, 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019