From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by sourceware.org (Postfix) with ESMTPS id 304B13857801 for ; Mon, 16 Nov 2020 20:49:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 304B13857801 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=berkeley.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=carrier@berkeley.edu Received: by mail-pg1-x530.google.com with SMTP id w4so14248467pgg.13 for ; Mon, 16 Nov 2020 12:49:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley-edu.20150623.gappssmtp.com; s=20150623; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=MWDOlep/69Uhow0+B5gyqV/u23tHysRxJ7htJiD3reE=; b=Zv8v/LUPoNfB/zeFEgTFxfzQiEBlc2oqZa2kg1uEcXA7pR3a9fJm7uxRnotUoundKl Z9IrP4KwVW5Uwd4vJsQ3VySdUCN7ORLIAEgmVAiB6q42MpntascnzTfnLMFBeaumWEeV zQ6oF6rjFZW8q3vJdxyTMDAqIAKP4M5T23IkYa2Zln0JElRA97f7tP5bvQEwi0Q7Q0UI JojtUjloNrsrQeLue6khawUPysUrxw57laCWcZ7lxTh/4RMMJYt8zNucFWJiv+MybrGy 5t/wyP4LV5ZU2fg6ZbSf92DV7rDDe8hBuCM9psl2BLPzi+MBQrwjPR08U1OCXrAfQM4h qs5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=MWDOlep/69Uhow0+B5gyqV/u23tHysRxJ7htJiD3reE=; b=OXCDH9tGsRfUeBqlmGHkg6mRAEK0pAP8rdJfMfjwuZFoH55ypHm9vjbyX6rmVgcaYq re2UJ6VmUpekf1DZKdML25kbcusAOLm169k06BjejPsn3cjG/S6F6zvWcmmgSzPRtbIT 27x1IQNDIvpJl6+ljGbzzCmQwjWUbTkwESd+Ybb8KykUZH976bP3hthwKIEUywpu3vnC n/4E4Z81SivjuGzPJbdnwZOmCg5iKxcppdwiBB870ATIbpDrXxssxXJ3cZC+cOPrueNl XedQtyKPvMg8Isq2Oc80dv4RJMueSSLCuQ9Ap3YKGxJi2W/A9ZonEqeMVFJbtAPdLJ/v tfmA== X-Gm-Message-State: AOAM533LrR2pMiUkCiKgB8eHHhyD1JC7vke9PYgIZw1m2HmZfhtaU4gm 80soG5VE2Kh6fyBS7tkjjYSrerQUPw+RUw== X-Google-Smtp-Source: ABdhPJwJhimOvXMueiMGUePuYsu/gqeiTC695wSdff8tQI62GWz+iwK/a1CB95iA5DWJQ2ueLQvQHw== X-Received: by 2002:a17:90a:b782:: with SMTP id m2mr770605pjr.185.1605559789777; Mon, 16 Nov 2020 12:49:49 -0800 (PST) Received: from iguana.crashland.org (ec2-52-35-100-111.us-west-2.compute.amazonaws.com. [52.35.100.111]) by smtp.gmail.com with ESMTPSA id 15sm755798pjy.0.2020.11.16.12.49.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2020 12:49:49 -0800 (PST) From: Stephen Carrier X-Google-Original-From: Stephen Carrier Received: by iguana.crashland.org (Postfix, from userid 510) id 807FE6149C; Mon, 16 Nov 2020 12:49:48 -0800 (PST) Date: Mon, 16 Nov 2020 12:49:48 -0800 To: Keith Christian Cc: cygwin@cygwin.com Subject: Re: CRON executes CRONTABS only when run from terminal as "/usr/sbin/cron &" Message-ID: <20201116204948.GB16928@iguana.crashland.org> References: <20201116204433.GA16928@iguana.crashland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201116204433.GA16928@iguana.crashland.org> User-Agent: Mutt/1.12.2 (2019-09-21) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2020 20:49:52 -0000 On Mon, Nov 16, 2020 at 12:44:33PM -0800, Stephen Carrier wrote: > On Sun, Nov 15, 2020 at 02:03:28PM -0700, Keith Christian via Cygwin wrote: > > Cygwin people, > > > > Running with this version of Cygwin. > > CYGWIN_NT-10.0 DESKTOP-ASERVER 3.1.7(0.340/5/3) 2020-08-22 17:48 x86_64 Cygwin > > > > Windows info: > > $ /lib/csih/winProductName.exeMicrosoft Windows 10 Professional, > > 64-bit (build 18363) > > > > I installed using cron-config, and created the cyg_server user.cron > > starts OK, but does not appear to execute the crontabs. > > No messages or errors in /var/log/cron.log. > > > > $ cygrunsrv -Q cron > > Service : cron > > Display name : Cron daemon > > Current State : Running > > Controls Accepted : Stop > > Command : /usr/sbin/cron -n > > What's the output of "cygrunsrv -V -Q cron"? > > What are the file permissions on /var/log/cron.log? ("ls -l > /var/log/cron.log"). The uid running cron needs write permission there. > > I run cron from the Local System account, which can setuid to other users. > I don't know the circumstances where one should still use a non-SYSTEM > account with Windows 10, but they aren't mine and I recommend running > as SYSTEM if possible. > > Stephen I have also found the output of "cronevents" helpful.