delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/25/16:52:26

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <5.1.0.14.2.20010625220245.05c7da38@imap.mscha.org>
X-Sender: ml AT imap DOT mscha DOT org (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Mon, 25 Jun 2001 22:13:12 +0200
To: Leonid Rokhinson <leonid AT EE DOT Princeton DOT EDU>, <cygwin AT cygwin DOT com>
From: Michael Schaap <cygwin AT mscha DOT com>
Subject: Re: crontabs in /tmp/.. ?!
In-Reply-To: <Pine.SOL.4.31.0106251037120.18646-100000@ivy.ee.princeton.
edu>
Mime-Version: 1.0
X-Virus-Scanned: at mscha.com by AMaViSd snapshot-20010407 (http://amavis.org/)

At 16:40 25-6-2001, Leonid Rokhinson wrote:
>I've installed the latest cron and found that it creates crontab files in
>/tmp/crontab.xxxx? I would expect to find it in /etc/var/cron/tabs/ or
>somewhere there.  Is it possible to change or the program is compiled
>with incorrect build-in path?

No, crontab certainly doesn't put crontab files in /tmp.
But if you do "crontab -e", it will put a copy of your crontab file in /tmp 
and allow you to edit this.  After editing, it will put the crontab back in 
/var/cron/tabs.  Then, if you do "crontab -l", it will list the source of 
the crontab as "/tmp/whatever".

If this doesn't work for you, then perhaps there is a permissions 
problem.  On a UNIX system, crontab is setuid'd to root, so can do whatever 
it wants.  On Windows, this doesn't work, obviously.
On my system, /var/cron and /var/cron/tabs have pretty loose permissions, 
perhaps this is different on yours.  Try:
         mkdir -p /var/cron/tabs
         chmod a+rwx /var/cron
         chmod a+rwx /var/cron/tabs

  - Michael


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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