delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/18/14:35:20

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:reply-to:from:to:references:in-reply-to
:subject:date:message-id:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=gzx2MOjlmb6mhS9f
3yEEieoUpRQg7iHnAOdDmQUAfxHMh5lY/xjI1wL6JoCtF4eZPWw2Rj24odEkjfGn
T1nvWTfNwENTZGh4AgBbEAfwg8C+uXjYz9zdwhxVAOHIaWL9xJUUJUnBVlU/Qhb6
FvT/W52SFzRqgFhdfEwGfwBMMbk=
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:reply-to:from:to:references:in-reply-to
:subject:date:message-id:mime-version:content-type
:content-transfer-encoding; s=default; bh=tvis5GzSoNpTSHwG8poY3E
ZQA/A=; b=Yg3eXzZm0XdV0vLf76g61+YqhDGxBmW9bn9/X6ICXoxw1hsda367Qv
/3zVzH+DAiSrj/s+MDeO7ovSIV5n0BAlVBwrVmrLDgplnmcaOz1osIOGgNk9GLGi
L+Nrwq7ucL0sZVVlT0/ODAVeG0ss9lInGlLAVGyFDIjNToMpmOiOo=
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.0 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL,URI_HEX autolearn=no version=3.3.2 spammy=HTo:D*us, 4163, pierre, 2873
X-HELO: vms173023pub.verizon.net
X-CMAE-Score: 0
X-CMAE-Analysis: v=2.1 cv=EdU1O6SC c=1 sm=1 tr=0 a=Os8xxJ7mppMZ0DqjfQ6ZJQ==:117 a=o83nqyVRAAAA:8 a=oR5dmqMzAAAA:8 a=IkcTkHD0fZMA:10 a=wUQvQvOEmiQA:10 a=9I5xiGouAAAA:8 a=nHcqXuE8tpm7AczghYcA:9 a=QEXdDO2ut3YA:10 a=5mzHuxo7lq4A:10
Reply-to: <Pierre DOT Humblet AT alum DOT mit DOT edu>
From: "Pierre A Humblet" <Pierre DOT Humblet AT ieee DOT org>
To: "'Jason Crawford'" <nnd151217cyg AT trewt DOT us>,
"'CygWin mailing list'" <cygwin AT cygwin DOT com>
References: <201512171946 DOT tBHJk3bq003950 AT zwork11 DOT zwpost DOT com> <56732725 DOT 8070108 AT gmail DOT com> <5673B25F DOT 50809 AT gmail DOT com> <567449D0 DOT 1080404 AT gmail DOT com>
In-reply-to: <567449D0.1080404@gmail.com>
Subject: RE: empty cron.log
Date: Fri, 18 Dec 2015 14:34:40 -0500
Message-id: <032c01d139cb$271d7000$75585000$@ieee.org>
MIME-version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tBIJZENb027392

> -----Original Message-----
> From:  Jason Crawford
> Sent: Friday, December 18, 2015 1:01 PM
> 
> On 12/18/2015 9:50 AM, Pierre A Humblet wrote:
> >> -----Original Message-----
> >> From: Jason Crawford
> >> Sent: Friday, December 18, 2015 2:17 AM
> >>
> >> Hello everyone,
> >>      Thanks for a great offering and all the help you provide.    I've
> >> used cygwin for a few years, but not deeply.  cron is one of the tools I
> >> find very handy.   Recently I upgraded to Windows 10 and ran in to
> >> problems on my Surface Pro 3.   I installed cygwin cron (latest cygwin
> >> 32bit (2.873).  Cron is 4.1-63.) and it seemed to work but as soon as
> >> I switched my laptop to use the Microsoft ID cron as Microsoft suggest,
> >> cron stopped working, complaining that it can not switch id's.   If I do
> >> a fresh install of Win10, switch to the Microsoft ID, and install cygwin
> >> and cron, cron won't even work once.   And if I do a fresh install of
> >> Win10 and never switch to the Microsoft id, cygwin cron works fine.
> >> When it fails, the cronevents log file complains that it can't switch user
> id's.
> >>
> >> I really don't do much.  I just install cygwin with cron, emacs, ssh,
> >> inetutils, unison, wget.  Then I start up a cygwin window as
> >> administrator.   Then cron-config, yes (service), [] (blank CYGWIN),
> >> yes (self), yes (start daemon).   Then I create a trivial cron file "*/1
> >> * * * *  date >~/cron_is_running.txt".   crontab mycron     ... and I
> >> wait a minute.  Then I invoke cronevents.
> >>
> >> I want to try out all the features of that Microsoft touts as coming
> >> with use of the Microsoft ID, but I don't want to lose cron.
> >>
> >> What do we all suggest that I do next?
> > Is that only with Cron or also with other services such as passwordless
> sshd?
> I don't run sshd on the machine (as far as I know).  I only ssh out.
> That works fine without a password.   But...
> 
> But I've just tried setting up sshd on two Windows machines just now.
> I ran in to a few complications due to being a novice, but it eventually
> worked on Windows 7.    I've still not gotten sshd to work on Windows 10
> if my ssh client is on another machine.  That seems to be some sort of
> network connection or firewall problem.  I can ssh from the local Win10
> machine to the local Win10 machine though.   I have only one account and
> I can ssh in to that without a password using authorized_keys.
> 
> Does that answer your question?   Is there a simpler or more helpful way
> that I can gather data for you?   I don't mind reinstalling the
> operating system if that would help.

Thanks, Jason.

I assume both cron-config and ssh-host-config asked you for the name of a privileged user,
and you used the same name in both cases.

You may want to try what I suggested to someone else a while ago
http://cygwin.1069669.n5.nabble.com/cron-error-can-t-switch-user-context-td61919.html

The instructions were, as follows, except that now the service should run under the privileged account, 
(use -u), not under SYSTEM (the default)

> Stop the cron service. 
> Use a simple crontab that runs every minute, for only one user. 
> Using cygrunsrv, create a new service runing "strace" with argument "cron" under SYSTEM 
> 1)  cygrunsrv -I trace_cron -p /usr/bin/strace -a /usr/sbin/cron 
> 2)  cygrunsrv -S trace_cron 
> 3)  Let this run for no more than 2 minutes, output will be in /var/log/trace_cron.log 
>      You may have to use kill -9 to stop the service (kill the cron pid) 
> 4)  Send the trace_cron.log file as an attachment. 
> 5)  Remove the trace_cron service 


Pierre



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