delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/28/19:23:58

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BT0Nvmj1607009
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 4BT0Nvmj1607009
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=AxRDyizH
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38F2E385840A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1735431836;
bh=mM+6wPIj9M4mue2/0zASuVVzoyLeGEU/MZ42BUJVGLQ=;
h=Date:To:Cc:Subject:In-Reply-To:References:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=AxRDyizHvfXuQNIImKAFVFa68X6m7KbScj+6O4p4whvLeDacSHtR9+KglwUOkfzP3
ANjJeGHhQWogftNOR43y7oPSmQfn1GxuUmj/XRySmgek5Pp5E6SWKYB3yoKqKKdwrY
Pddaum5m9lVW0LFKWmB9UOuMgsjQ6jWftKldpFGA=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 76B2F3858CDA
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 76B2F3858CDA
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1735431647; cv=none;
b=RWiiL9DZ8yInLRXne7cRwq8C8QlT54x7G1gBf/7I/1fKA+qK+41xIqSj1OXhD7fd+0UHcui3bFHum6NWnn2zh2U6ItUU06H2yQojTz5ueiHZEQlIlWWCL0Gk5TLVbLGhxulJj6+C/vEFAjZRX/97/rfGZYvpI6V4xzY2YfsHfm4=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1735431647; c=relaxed/simple;
bh=i8juOjI9YKOAbopPaU90DXv2z2RbmoEgGoCud0d5430=;
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
b=voXmJ3BFMKb5EOhEomE39X/6oVyLKVmFtyjgQPMjFdXUOEQ+ADdFtxRSnmEvuy7wuCOao4gYIPXbPINOh0he2wpkLm5tOm8Xs8CUm2XL3GexeCLz7b0LyPzMZm0yC170r8VwUH6hTG6kAK1IeMZOon6Sbk+wlpdJ8h9uWjdAGXU=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76B2F3858CDA
Date: Sun, 29 Dec 2024 09:20:42 +0900
To: cygwin AT cygwin DOT com
Cc: Chris Elvidge <celvidge AT outlook DOT com>
Subject: Re: Anomaly in CRON execution of shell script
Message-Id: <20241229092042.de90355881033baefebdedc9@nifty.ne.jp>
In-Reply-To: <AS4P194MB18166DB18D3C582F25A93DEACF0F2@AS4P194MB1816.EURP194.PROD.OUTLOOK.COM>
References: <AS4P194MB18166DB18D3C582F25A93DEACF0F2 AT AS4P194MB1816 DOT EURP194 DOT PROD DOT OUTLOOK DOT COM>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On Sat, 28 Dec 2024 17:07:10 +0000
Chris Elvidge wrote:
> I have a directory of files that I need the contained executables run 
> from CRON. (Like run-parts.)
> 
> I have found that since 25/12/2024, when run from CRON, it doesn't 
> differentiate between executable and non-executable files. I.e. tries to 
> run the non-executables. It ran correctly on 24/12/2024, i.e apache2 and 
> updatedb ran, rest skipped.
> 
> Check file (simplified bit of original):
> $ cat bin/check-execute-bit
> #!/bin/sh
> cd $HOME/daily
> for S in *; do
>      [ -x "$S" ] && echo "$S : executable" || echo "$S : not executable"
> done
> 
> Directory contents:
> $ ls -l $HOME/daily
> total 48K
> -rwxr-xr-x 1 celvi celvi  625 Apr 24  2024 apache2
> -rw-r--r-- 1 celvi celvi  15K Apr 24  2024 apt
> -rw-r--r-- 1 celvi celvi  355 Apr 24  2024 bsdmainutils
> -rw-r--r-- 1 celvi celvi 1.6K Apr 24  2024 dpkg
> -rw-r--r-- 1 celvi celvi 2.2K Apr 24  2024 locate
> -rw-r--r-- 1 celvi celvi 1.3K Apr 24  2024 man-db
> -rw-r--r-- 1 celvi celvi 1.1K Apr 24  2024 ntp
> -rw-r--r-- 1 celvi celvi  257 Apr 26  2024 passwd
> -rwxr-xr-x 1 celvi celvi  932 Apr 24  2024 updatedb
> 
> Run from command line:
> $ check-execute-bit
> apache2 : executable
> apt : not executable
> bsdmainutils : not executable
> dpkg : not executable
> locate : not executable
> man-db : not executable
> ntp : not executable
> passwd : not executable
> updatedb : executable
> 
> Output from CRON running check-execute-bit:
> apache2 executable
> apt executable
> bsdmainutils executable
> dpkg executable
> locate executable
> man-db executable
> ntp executable
> passwd executable
> updatedb executable
> 
> 
> Anyone any ideas where I can look next for what is going wrong?

If you are running cron as privileged account (like SYSTEM),
perhaps, this is due to:
https://cygwin.com/pipermail/cygwin/2024-December/256972.html

This problem will be fixed by:
https://cygwin.com/pipermail/cygwin-patches/2024q4/013146.html

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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

- Raw text -


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