delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/12/10/11:22:30

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1BC73858436
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1702225349;
bh=NoGxkBf6o9pLL59YTl3EcVYR7tvrFbSonM+Uf0uV6u4=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=g+l05kuIu3XG83BED45jfAAGE0WvoBiTfcFeQDVWlvRVTO7aMociGee2W4ngbg5Rs
lxr/houTU+bvf7s97cqnoXGBCvns1KKbKFG/95onNKVNLi5xMpTV3EtV6VwYRz+kfI
spSnWGyL8kTUd9OfoD9xODt26cU3mxRva+ZPlFH4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5EFD73858D28
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5EFD73858D28
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702225336; cv=none;
b=rYq+izRBh0zVmGFhnlVdgboqdna4xmJOKOzKK6e9cAv9Hh0IoiTYcQGUyvxcQkjW6qhnh/gy3zaoVJXLgqKNMRGNL4OEv1oXwCqiVweGS58Sjr4oRI3RRsYpBAUYkY30t5nH/wI4utJ050I+ApBWVxiTAWeBwA7eRMCt8hvkhiQ=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1702225336; c=relaxed/simple;
bh=FpYgWrFEgSwSJVMBOnVtLa5vGarayidzPkUwWuWNbeU=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=VI1QzUIDW6ARpiPXDI45zKt/3eJpCzalGXc5VoDvIh0WYFqJ5Blpk2I1xbKEANJ/bQIYQHRG0reC2VOks7UvUVsvd92QAQcDs8wWObKFzI2KgZDRcO+pAgkHo3IAPSBLlDcQdFLCX22jnJPLbI/2ApO47nQU0W0Y9zSD5IB7+CQ=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Authority-Analysis: v=2.4 cv=CZQbWZnl c=1 sm=1 tr=0 ts=6575e5b5
a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17
a=dBa6yEyPMvTGave8:21 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8
a=YK8dUf-cRJkJx9q0KMsA:9 a=QEXdDO2ut3YA:10 a=j7qj_2k40JUA:10
a=Gklzsp0rn2cA:10 a=sRI3_1zDfAgwuvI8zelB:22
Message-ID: <9e2df6c4-a17c-4792-bc97-94158a61d2d9@Shaw.ca>
Date: Sun, 10 Dec 2023 09:22:12 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Cannot set up cron as a service on corporate PC
To: cygwin AT cygwin DOT com
References: <20231209215527 DOT bg5slflpy6bufbmw AT lucy DOT dinwoodie DOT org>
Organization: Inglis
In-Reply-To: <20231209215527.bg5slflpy6bufbmw@lucy.dinwoodie.org>
X-CMAE-Envelope: MS4xfDRQ8UBiw/gejzWa0WvQfFVlWkx0iPWiD9W0QnJksXjh0gdXUgtZ22BOcud6DOttR6DFYlT5N8Jk0555cLL129I5w7FJVlayN02fqZQbOm/HpKYxCbYq
Rjv/Z9I9dfKdbgjLMLvjPLpD0oThkKnnq865zXI662VDCjWIWCoJXDNT0DRfvNh6UUv93ywKtvgaDA==
X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,
RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
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: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>
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>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3BAGMUTJ012044

On 2023-12-09 14:55, Adam Dinwoodie via Cygwin wrote:
> I've been trying to set up Cygwin cron to work as a service on my work
> PC.  I'm able to get it working just fine on a Windows system where I'm
> using a personal Microsoft account, but when I attempt the same process
> using on a Windows system using my work account, I get the following
> error:
>      cygrunsrv: Error starting a service: StartService:  Win32 error 1068:
>      The dependency service or group failed to start.
> I also note that in the failing scenario, I see the following log appear
> at this time in Windows Event Viewer:
>> This computer is configured as a member of a workgroup, not as a
>> member of a domain. The Netlogon service does not need to run in this
>> configuration.
> I've reproduced this behaviour in virtual machines using fresh
> installations of Windows, and where the only actions taken were to
> bootstrap, log in, install Cygwin including cygrunsrv and cron, then
> attempt to set up cron as a service.  I've attached copies of the MinTTY
> output and the cronbug.txt files (which appear to include the normal
> cygcheck -srv output, so I've not added those separately.  I've also
> attached the full Event Viewer log
> My guess is that something about how Windows manages user accounts has
> changed over the years, and cygrunsrv hasn't been updated to cope, but
> that's a very wild guess.  Searching the archives hasn't got me very
> far; mostly I've found references to cyglsa, which I get the impression
> is thoroughly deprecated, and based on
> https://www.cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd3 I don't
> think it's appropriate anyway due to the way the password is stored.
> For now I'm continuing to use a snippet in my .bashrc to start cron when
> I first start Bash, but that's not the nicest of workarounds.  Does
> anyone have suggestions for anything better?

Never any issues here with cron, other than no mail, but I run mainly run 
scripts that log to /var/log/, and syslog rules that chmod a+r.
I installed cyglsa many years ago, but don't think that's used any more, and I 
also used passwd -R, so that should still be around.
I have also customized my daemon services so auto-start is delayed, notify on 
pre-shutdown, and depend on others: cron -> syslog-ng -> cygserver -> SamSS 
Security Accounts Manager, as I an not in a domain.

Given the error, I suggest checking the system config, as it either needs to be 
a domain member, with DC/AD access, or you need your work user created locally.
Also check the deps with `sc qc cron` and follow the chain to see where netlogon 
gets involved.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


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