DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 62VLpcLu3315389
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 62VLpcLu3315389
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=lq5Bolz+
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3413F4B7A1F8
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1774993897;
	bh=kEitOm2DbAjQyFLZeT3TzdT8HOEpKkv6/BLWEBNqvmE=;
	h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=lq5Bolz+u42CUlx5L3Bu1V+Qj0vnxqgPbmChUewlrOCJhhj/xfla/YKdQVrGbxOdh
	 9SoES0wQCkzv94N4ZOCFjmVlKMKXAgd8v3xn2ylSQrxsOBZU8Cyd9TZtyM67hTp7Lv
	 i+fBTFD0pSMKhwjajeYVO/hAlmwY6vrUZsth4mvE=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 14A174BA2E17
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 14A174BA2E17
ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1774993849; cv=pass;
 b=SzNvIKZPmTghAZlvQjJ9JuRi1/+JcwWBAm05H3Eq2nKUWvhatbXg4MLaIDoEFhwa9Ap+vEVVkYGyq24A8VWEuRb8QUY4G672dUu0UxOXenZowo/yZ5jDahTyy/z4gvk6g5jmz+sDMhHgZV1mbQL3k+Jyzv7Gi75nXHNZGnH/dgs=
ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key;
 t=1774993849; c=relaxed/simple;
 bh=hqRhg4hmJxt2rswOOd+vA3oE0VlXOZnoKNj4fwFCVTQ=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=PKgRbxJQ/Z8kAfqaKe+tKERcUa9WDjhQ8eYuOvNdK/f/bsoe20MIPbpyB/Ke4GroivEp+3m3pETXkpNVHlXDFulVJ2VpDHLpw1fZiroUiOzc2/FUGjICKG/4xNTbrksCyvrKY6rclBCnosJ3L054MPKwTLqUBI7qch5cS3DhUdc=
ARC-Authentication-Results: i=2; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 14A174BA2E17
ARC-Seal: i=1; a=rsa-sha256; t=1774993848; cv=none;
 d=google.com; s=arc-20240605;
 b=UDvg6vDq/BRERRb31bWrRY8wymDkM7amsPxRVXz4aufds65GTzkDctLUtqwVt7xcEl
 fOqBYg4ja6eV9LFXvEhcsi7eSdZ5jLlmrW/w1wP1XD3cg7VUBJxgNjHoatIFs18oeJBV
 66mcgyW3bUnDO0n1ag1msRbdsAGHLEdB2Fbae1+KP5P0L3typsuTkBO7mKUb6SuLYiEy
 GAqsEYWC+0tsA039jjFGpYZMT0LQN+ltlXEdx6Q7K3EDu81XPvk5kEylAui1aTt3881O
 sV+biBesAelk15ZwVRq51QeSJYqC5ZBBYwKXyJvPcUmnKIrt8j3YpHjb0Dnshb37EIGi
 LsVA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20240605; 
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :dkim-signature;
 bh=I6XGusvEvdbUQIt+/fL+gw+nTUxWk7wng649f3zyLzw=;
 fh=UKNFaOBO97U3RYl3PEse//nArTqr7SLJjCCEBz281Ew=;
 b=SETUYIo+nYISugHBlSSA1ZoZ7WFQ61HjqLNVdc/EGzda9LW/z0TZG3Em5yy4M+N+c7
 JsvIUregg9jciRmdf9FgTu9yCjuX+La2fDaEasnBEHRayjKkXXPCNq/0v3nnN/qKb5HX
 6q2NyqpISzzW4kFDTUVMoa/o72SDVMMrOqE1cD4TvmhgDZJN0ZHUGjBgKD3eH7GgFBBm
 anHUe/SZ+9SWDC4gR0wa2pfwLFoG12TDuUinHZ+er3fFi+j7DOzWmaM6vwEZmZqUE12d
 xu1i9KdIjWU35cMQujPgvgUmJvmDUIuw4AmyVxi1EBVIF6FaLh+lcT9nda0xorwmRzmM
 Q6IQ==; darn=cygwin.com
ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1774993848; x=1775598648;
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=I6XGusvEvdbUQIt+/fL+gw+nTUxWk7wng649f3zyLzw=;
 b=lrViHy45ldlSjxwltrnpc4g4Vo+rjZZnvJS+y+jQEp+rTfb5wZYKsiVMrF/n4losej
 Hl+aIA0oCdvSrXXQcNOaESQ/yI3g39F3mePMnknbPaCbwbl1ztXYaoUf3c6Ok6FTFppG
 F/jj99Fm+kkPEmMnzUc+S/yibKsHktJfIuziaydwxwzl8GKmPx+UPnxtcWg6T8Aw+HuX
 YQIlmSl2IFn2EZmFWap5CLGgiqQWCkt68m+uE7UearQgUfBsyNu07QFPa23DzYkCzYM2
 yJJno1nDeKUbPWZk69LwRaJ4HZQ+Z1In2MYORzK8KkE6eEvftoxzDVzH8dr6IANgm0G3
 g3sQ==
X-Gm-Message-State: AOJu0Yxr8S/LsZXpvb3LiB/SAXbZipyM4mRyTe8hUxqA7WEC8WG9D854
 PzfkoCJG2594pSwFLyHz0216VpQPzyliNxyRA0nK1umQB6rHR1OFJMfeQeB2uqMPZSww855gbWv
 1nq7Jlrzd+1Wngz6cF+RirH3wCy8l3sv30oLGwVo=
X-Gm-Gg: ATEYQzx/v/RKFPKnTFci/3tIZaHDj4CORZV9lFJaMaeoUOaNN/lQ35jB54Fcx8e+tHR
 inPeEfIIU5pC9mT67MdPfRJF796ZDcDBZlcMkzc46mmy4UllsbiIO1h408ZGfPYZfSnF2v+Shnd
 ioFFqASu3tN+HcfetZTs2NmXjJ9R7RUAcsCMV4BiokkvyGSNOHKNZSK66+srMt0bz+AutbK+UdT
 0UQcZNn4QraXB9KmDVMa5tPBzfYZgWy/HVjkjFZqEsPlP1I6p/qU33ZMqsk02IPhvoD1abOP/ug
 LgGad7MP3bsHfCR5FC1f/oSDGHLDAVsDe2yjo8PScly3XCgf
X-Received: by 2002:a05:6820:168b:b0:67b:decf:eef3 with SMTP id
 006d021491bc7-67fabcb8208mr530715eaf.37.1774993847918; Tue, 31 Mar 2026
 14:50:47 -0700 (PDT)
MIME-Version: 1.0
References: <CAEk+pBjbBc2AYSwEf7QLMT87wUqnO+5xdgkOVBPnT+Ncdd1ihA@mail.gmail.com>
In-Reply-To: <CAEk+pBjbBc2AYSwEf7QLMT87wUqnO+5xdgkOVBPnT+Ncdd1ihA@mail.gmail.com>
Date: Tue, 31 Mar 2026 16:50:30 -0500
X-Gm-Features: AQROBzCxk6H_PecwJbiqDWo-OSCjPJeM_2EpKFJ57qtN1qyse_uSZDzDGxmH1xA
Message-ID: <CAEk+pBjkiBcPhR+3Q=5WBfwr+dE8wsYz8QLx8dc7YSVGPG2CmA@mail.gmail.com>
Subject: Re: [SYSTEM] /usr/sbin/cron: PID 388: (CRON) error (can't switch user
 context)
To: cygwin@cygwin.com
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: John Eastberg via Cygwin <cygwin@cygwin.com>
Reply-To: John Eastberg <john.eastberg@gmail.com>
Content-Type: text/plain; charset="utf-8"
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 62VLpcLu3315389

I think I fixed the problem.  I decided to rebuild /etc/passwd and
/etc/group.  Stopped the cron service and restarted.
Reran /usr/bin/cronevents and noticed a message "WRONG FILE OWNER
(tabs/john.eastberg)".  I wnt back to Gemini and asked "[SYSTEM]
/usr/sbin/cron: PID 454: (john.eastberg) WRONG FILE OWNER
(tabs/john.eastberg)".  Its response suggests something is wrong with
/var/cron/tabs/john.eastberg.  I followed the suggested resolution, and
that worked.  Crontab scheduled script runs on schedule.

*GEMINI response:*

That error message indicates that the *cron* daemon is refusing to run a
scheduled task because the ownership of the crontab file for the user
john.eastberg is incorrect. For security reasons, cron requires that a
user's crontab file be owned by that specific user (or sometimes root,
depending on the OS) and not be group-writable.

To resolve this, you generally need to restore the correct ownership and
permissions to the crontab "spool" file.
How to Fix the Error

You will likely need sudo or root privileges to fix this, as these files
are stored in restricted system directories.

   1.

   *Identify the file location:* On most Linux systems, user crontabs are
   located in /var/spool/cron/crontabs/. On some Unix or BSD systems, they
   may be in /var/cron/tabs/. Based on your error message, it looks like
   the path is tabs/john.eastberg.
   2.

   *Correct the Ownership:* Run the following command to ensure the user
   owns their own crontab file:
   Bash

   sudo chown john.eastberg /var/spool/cron/crontabs/john.eastberg

   *(Note: Replace the path with the actual path on your system if it
   differs.)*
   3.

   *Correct the Permissions:* Crontab files should typically be readable
   only by the owner:
   Bash

   sudo chmod 600 /var/spool/cron/crontabs/john.eastberg

   4.

   *Restart the Cron Service:* After fixing the file, it’s a good idea to
   restart the daemon to ensure it picks up the changes:
   Bash

   sudo systemctl restart cron



John Eastberg


On Tue, Mar 31, 2026 at 3:57 PM John Eastberg <john.eastberg@gmail.com>
wrote:

> CRON is not running a scheduled script.  I've tried several Gemini
> recommendations.  Finally, I tried uninstalling and reinstalling cron using
> Cygwin utilities.  Attached is the cronbug.txt output.
>
> John Eastberg
>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

