delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/15/17:30:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Info: This message was accepted for relay by
smtp03.mrf.mail.rcn.net as the sender used SMTP authentication
X-Trace: UmFuZG9tSVbilKKtBfNDC5hPJ3k7VqYn6ErZE26lqKSFW5ykn2vwqk33AueSaQpv
Message-ID: <3F3D500B.2030305@cygwin.com>
Date: Fri, 15 Aug 2003 17:26:35 -0400
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Andrew DeFaria <ADeFaria AT Salira DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: cron and network drives
References: <bhjijq$m90$1 AT sea DOT gmane DOT org>
In-Reply-To: <bhjijq$m90$1@sea.gmane.org>

Andrew DeFaria wrote:

> I have a situation here. Now I know that cron can have problems with 
> network drives. As I understand it cron runs as SYSTEM and switches 
> users to the user whose crontab is being "run". As such it's a 
> passwordless "login" and I am told that with passwordless logins Windows 
> security restricts access to things like network mapped drives.
> 
> This can be shown by the following cronjob:
> 
> 00 12 * * * net use > /tmp/netuse
> 
> Which results in:
> 
> New connections will be remembered.
> 
> Status       Local     Remote                    Network
> ------------------------------------------------------------------------------- 
> 
>             M:        \\view                    ClearCase Dynamic Views
> Unavailable  T:        \\sons-cc\Tools           Microsoft Windows Network
> The command completed successfully.
> 
> Note the Unavailable for the T drive. This was produced on a system with 
> Cygwin 1.3.22 installed, cron 3.0.1-10.
> 
> However, and this is the part that gets me, on another system running 
> Cygwin 1.3.20, cron 3.0.1-7 the same cronjob produces:
> 
> New connections will be remembered.
> 
> Status       Local     Remote                    Network
> ------------------------------------------------------------------------------- 
> 
>             M:        \\view                    ClearCase Dynamic Views
> OK           T:        \\sons-clearcase\Tools    Microsoft Windows Network
> The command completed successfully.
> 
> Note the OK for the T drive. I need to have access to the T drive. Why 
> can I access it through cron on one system and not the other?


Hard to say exactly with the information given.  My WAG is that the
user from whom you're running the cron job for is logged in and
authenticated by Windows on the second machine when cron runs but not
on the first machine.  This is assuming the share is not public, which
would mean you have a completely different (network) problem on the
first machine.



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