X-Recipient: archive-cygwin@delorie.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=aLl
	aAaeBBvYIk3a/gIRt34JB4BJALHBmce+uC2L+qH4/iIYn+4TINhc13HVuP4RbZy8
	JNXoGZRPtjLW9L4l421S+18zTVLLbYigTQAciBDK++NoDmOVKjbVUKyLrLQaXkm6
	8bo6z+zVG4+GPjgi6kL+n0gjqK0dAscE135rWpV8=
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=02e1kz/tI
	CkAJmLsCNug06MJQUg=; b=WREIOV7sq4sRLP/PnIOxuTQxA13lgEIdAaaDE93Cz
	ugthw6h8Z6geXZB827kY/3FlLeUwfQDoyTdjDV0ZO9T1U1YPj5/ZHD4MwFcSwfwL
	jCjahYhlY+559CHEX0LajTzE+pPIBujVOJrlDh+aBo2esIPd4Ay1We0VtGVt8F+H
	fo=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*c:alternative, desktop, H*c:HHH, password
X-HELO: mx0a-00082601.pphosted.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : subject : date : message-id : content-type : mime-version; s=facebook; bh=uY3Wuvy2XB05uyklGSdf0RUc5CSqfCiNCbbGinrAIJE=; b=KWtN7Adm2KmVBe7082GcBclDFfEYxHODRt1alWq+LtYEGD4L+v5h6WdES4Vtdxto4yWK jWIoGGy73inhV1vYIdQIL+9DMwYBJbDwslJkbBZoSQyiLLThZRKWryl/jE+HVxraCxQe s+EGk/WmLhmI3tZfal9b1uY9wkRP9+v6tEQ=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uY3Wuvy2XB05uyklGSdf0RUc5CSqfCiNCbbGinrAIJE=; b=hXUaUb64IvHPQ+ptPBJHxBK3iqkCQcFb5IP/IedAHaMDdJtZXkrovBfWgF/eUT10MK1l/+2E2shikbGI+OHAF+uEGcqcLwA0l1BE6QAZzKtHQ5jiI1EQgT/mR51b7x48dD0fcxwF913iUbvWe4iIQDae4tWWNkuW6HbDOOS2RQI=
From: John Oxley <joxley@fb.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Can't create scheduled task over ssh as current user
Date: Tue, 19 Feb 2019 19:02:13 +0000
Message-ID: <MN2PR15MB2718FCE1C1D389D6AC0AC4E0BC7C0@MN2PR15MB2718.namprd15.prod.outlook.com>
received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-Proofpoint-Spam-Reason: safe
X-FB-Internal: Safe
Content-Type: text/plain; charset="iso-8859-1"
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x1JJ2awV008837

Hello all,


I'm running a Windows 10 VM with a fairly recent installation of Cygwin (last month or so).


If I ssh into the box as the user "foo", I cannot create a scheduled task for the user:


foo@host $ schtasks /create /ru foo /rp fooPassword /sc HOURLY /tn foobar /tr 'echo foo'
ERROR: The user name or password is incorrect.

If on the otherhand I log in as the user "bar" and run exactly the same command, the scheduled task is created

bar@host $ schtasks /create /ru foo /rp fooPassword /sc HOURLY /tn foobar4 /tr 'echo foo'
SUCCESS: The scheduled task "foobar4" has successfully been created.

If I log into the VM with remote desktop as the user foo, I can create the task.

I have tried substituting /ru and /rp with /u and /p but get the error
ERROR: User credentials are not allowed on the local machine.

I am not sure what is going on and would love some help.

Thanks
-John



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


