delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/22/10:56:02

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 22 Jun 2010 16:55:48 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Fw: Using cron with network share
Message-ID: <20100622145548.GE8163@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <156825 DOT 61383 DOT qm AT web82108 DOT mail DOT mud DOT yahoo DOT com> <4C201AA1 DOT 2050502 AT cygwin DOT com> <017101cb1218$6862eda0$2a0010ac AT wirelessworld DOT airvananet DOT com>
MIME-Version: 1.0
In-Reply-To: <017101cb1218$6862eda0$2a0010ac@wirelessworld.airvananet.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Jun 22 10:37, Pierre A. Humblet wrote:
> ----- Original Message ----- 
> From: "Larry Hall (Cygwin)" 
> To: cygwin
> Sent: Monday, June 21, 2010 22:06
> 
> 
> | On 6/21/2010 2:08 PM, Oren Cheyette wrote:
> | > ** apologies about the bad formatting in the earlier reply **
> | >
> | > Well, I apologize for being dense, but I'm not getting it. I read the
> | > document you link to quite a few times before posting my query.
> | 
> | OK, I didn't know that.
> | 
> | > I initially tried running the service under my own account (as
> | > suggested in the faq) with my username&  password entered at prompts
> | > from cron-config. No luck. Then I added the mount point to the system
> | > fstab and tried again. No luck. Then I changed cron to run as system
> | > rather than user, just to see. Still no luck. I also tried adding my
> | > username&  password to the registry using passwd -R.
> | 
> | How about skipping the drive altogether and directly mounting the UNC
> | path?  If that's not working for you, perhaps you want to try just
> | doing the simple "net use" syntax to try to flush out the specifics of
> | your problem.  Again, I'd recommend using UNC paths rather than dealing
> | with possible conflicts of network drives (using the same drive
> | designation as two different users or in two different contexts can result
> | in access problems for the second "use").
> | 
> 
> I agree with Larry. The mount in fstab is  S:\SFCore /sfcore
> but S: may not me mapped when running as a service.
> Use a UNC path in fstab and run the cron daemon as yourself.

Using setuid method 3 instead might work as well:
http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd3


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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