delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/27/23:16:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20040927225802.03f46470@pop.prospeed.net>
X-Sender:
Date: Mon, 27 Sep 2004 23:15:05 -0400
To: Rekha Belur <rekha_belur AT yahoo DOT com>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: crontab/mount problem
In-Reply-To: <20040928004522.64937.qmail@web21203.mail.yahoo.com>
References: <20040928004522 DOT 64937 DOT qmail AT web21203 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0

At 08:45 PM 9/27/2004, you wrote:
>I have installed the cron. It works fine for all cases
>except while trying to do anything across the mounted
>filesystem. I realize it might be some permission
>problem, not sure what it is. Is the problem because
>the "k" drive is mounted type "user". How can I change
>it to be a system wide mount or do I need to ?


No, you don't.


>Here's the exact problem
>$ crontab -l (my crontab)
># DO NOT EDIT THIS FILE - edit the master and
>reinstall.
># (/tmp/crontab.1572 installed on Mon Sep 27 17:10:53
>2004)
># (Cron version -- $Id: crontab.c,v 1.7 2003/04/15
>15:13:41 corinna Exp $)
>HOME = "/cygdrive/c/Program Files/Sonic"
>BASE="/cygdrive/k/rekha/runSonic"
>* * * * * /usr/bin/touch "$BASE/foo.txt"
>1>${HOME}/sonicOutput/cron.out 2>${HOME
>}/sonicOutput/cron.err
>
>Here's the output of cron.err
>$ cat cron.err
>/usr/bin/touch: creating
>`/cygdrive/k/rekha/runSonic/foo.txt': No such file or
>directory
>
>NOTE: I can see the contents of cygdrive/k from the
>shell. I only have problems while using the cron. So
>if I excute this command like follows it works
>rbelur AT rekha /tmp
>$ touch /cygdrive/k/rekha/foo.txt
>
>$ ls -ltr /cygdrive/k/rekha
>total 92
>-rwxr-xr-x    1 rbelur   mkgroup-    12302 Sep 27
>17:07 cron_diagnose.sh
>-rw-r--r--    1 rbelur   mkgroup-        0 Sep 27
>17:34 foo.txt


Read this:

<http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SWITCH>

If you've installed cron as directed, you won't have access to non-publicly
accessible shares.  Your options are to make the shares accessible to all
without authentication or run 'cron' as a service under the same user as 
owns the crontab.  The former opens up your share's permissions 
significantly.  The latter makes 'cron' usable by only you.

There's plenty in the email archives about all this too if you're looking 
for more reading.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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