X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.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@berkeley.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@berkeley.edu>
X-Google-Original-From: Stephen Carrier <carrier@Berkeley.EDU>
Date: Fri, 20 Mar 2020 09:08:00 -0700
To: cygwin@cygwin.com
Subject: Re: crontab message "must be privileged to use -u"
Message-ID: <20200320160800.GA7871@iguana.crashland.org>
References: <1575279001.20200318225451@yandex.ru>
MIME-Version: 1.0
Content-Disposition: inline
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@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Cygwin mailing list <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <http://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.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
