delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/20/14:04:59

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-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <ADeFaria AT Salira DOT com>
Subject: Re: cron and network drives
Date: Wed, 20 Aug 2003 11:04:47 -0700
Lines: 24
Message-ID: <bi0d7n$hpj$1@sea.gmane.org>
References: <bhjijq$m90$1 AT sea DOT gmane DOT org> <3F3D500B DOT 2030305 AT cygwin DOT com> <bhjkun$ppg$1 AT sea DOT gmane DOT org> <bhr2rr$okd$1 AT sea DOT gmane DOT org> <20030818181955 DOT GA22397 AT emcb DOT co DOT uk> <bhrg7d$i1e$1 AT sea DOT gmane DOT org> <20030819080057 DOT GI3101 AT cygbert DOT vinschen DOT de> <bhtnoc$2fk$1 AT sea DOT gmane DOT org> <20030820081509 DOT GA12392 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en, zh
In-Reply-To: <20030820081509.GA12392@cygbert.vinschen.de>

Corinna Vinschen wrote:

>> If so and it is also true that passwordless logins will not have 
>> access to mapped drives then we still have a mystery here as to why 
>> it works on one machine and not on the other.
>
> "I don't pretend to understand how the SMB code in Windows works."

Just to add to the topic here, what I've found out is that while one 
cannot access mapped drives in such a scenerio one can access the same 
place using UNC names. IOW if the T drive maps to \\server\share and 
there exists foo.txt in there then cat t:/foo.txt fails while cat 
//server/share/foo.txt works! It's beyond me why Windows would think 
that one's a security problem while the other isn't (Then again consider 
Microsoft's record on security... I rest my case! :-) ).

Anyways this forced me into finding another solution to my delimna 
because hardcoding UNC names into my Perl code did not seem like a good 
solution since I would need to keep different Perl scripts at the 
different sites. Instead I cooked up a scheme that let the Perl code 
determine which site it was running on by the local machine's IP address 
and act accordingly. Since I removed all references to mapped drives 
this oughta work but I guess I'll have to wait and see.



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