delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/03/20/12:08:54

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 48DD1387703A
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=berkeley.edu
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=carrier AT berkeley DOT edu
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=0Z3N/LSu6ZsKpdl0N0kHlWsIXfN+YmItP+WzRNUDA60=;
b=lcU5D3RHHpdGbzbySFdmjKbNCdLTeJQlOoFll/SxpTS183xowynwGOGXrR6xOkaHLw
BSRU7Nxo3sN1wxVrY5KPXBMd6f7MiMYkIAveB5RPpRhLBvFWmjZNwsxSrKMnPYHrndFN
nG+vARsPjdzXscWinomtvgay8XOTGlQmR8qEPQ/X6Jcsi4fFeU8j0caJTZjZ/YVUhpcO
kyKn2Fra74RQVaRAh4g6P8GCkeCevV70SIWP0aBOvpCPoBWqZYcT6qTW9IG3O3zpvwME
F//TnBaEaAtdvR9ubd9JG2baU+7KLR4DRpjLyAZevTcJgXtvBSdLflqxziKvzPoqrK4e
Dzmw==
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=0Z3N/LSu6ZsKpdl0N0kHlWsIXfN+YmItP+WzRNUDA60=;
b=TEtkt9pl+RqHC/34ls+TRljmczJnUi817aGYasCo+CBNtbQYNSSWi3Ale7bP88gSmZ
BWc9oWy7ZNiLRyuaPeTywncxBAlCv4FagPsOnftWczxnsRIi44VZnrDQcGau//pEeDAO
AFKFWkVUFr3dqNFAO6VSbTnzyMB/MlI/8dMN/mXO7FwRlODSfnx4le2iL6fF9kSkWTL8
ve5q1JMRC/CHJ2eB+FNI9zzpDRW9IqpJeM3O3EiU+8FzBySyTY5C4GRjMspJ0PP5wN98
TNPxsl86/NMICUJDTsbcwjs4++739KtbxAn2cckXJJK9k20FqaQ1GIhyPylzMMl1/QkO
j9Fg==
X-Gm-Message-State: ANhLgQ1cz3E0/vQRRwLlPDARK8zgOYIeClTbU55Dgd8I+ieKCjlEBKIF
JElOkKVsYV4jnQd7A953Su988qvoERg=
X-Google-Smtp-Source: ADFU+vsm6KsXKfKVMhmuvvJvbKaHcyHG1EBlydpgeLalibxRNUb9c0XNETN7s9oMsM96WshUTCttAg==
X-Received: by 2002:a17:902:d705:: with SMTP id
w5mr9396942ply.68.1584720485034;
Fri, 20 Mar 2020 09:08:05 -0700 (PDT)
From: Stephen Carrier <carrier AT berkeley DOT edu>
X-Google-Original-From: Stephen Carrier <carrier AT Berkeley DOT EDU>
Date: Fri, 20 Mar 2020 09:08:00 -0700
To: cygwin AT cygwin DOT com
Subject: Re: crontab message "must be privileged to use -u"
Message-ID: <20200320160800.GA7871@iguana.crashland.org>
References: <1575279001 DOT 20200318225451 AT yandex DOT ru>
MIME-Version: 1.0
In-Reply-To: <1575279001.20200318225451@yandex.ru>
User-Agent: Mutt/1.12.2 (2019-09-21)
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, SPF_HELO_NONE,
SPF_PASS 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: Cygwin mailing list <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <http://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: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Wed, Mar 18, 2020 at 10:54:51PM +0300, Andrey Repin wrote:
> Greetings, All!
> 
> I'm trying to use Cygwin's cron, but have a small issue:
> 
> # crontab -u 18 -l
> must be privileged to use -u
> 
> Is there a way around the problem?
> I'm in an elevated shell, but it seems crontab is doing a dumb POSIX check for
> EUID=0.

For me the way around this has been to view (or edit) directly the file
in /var/cron/tabs.  If you edit the file, cron needs to be restarted.

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