Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: Andrew DeFaria <ADeFaria@Salira.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@sea.gmane.org> <3F3D500B.2030305@cygwin.com> <bhjkun$ppg$1@sea.gmane.org> <bhr2rr$okd$1@sea.gmane.org> <20030818181955.GA22397@emcb.co.uk> <bhrg7d$i1e$1@sea.gmane.org> <20030819080057.GI3101@cygbert.vinschen.de> <bhtnoc$2fk$1@sea.gmane.org> <20030820081509.GA12392@cygbert.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.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/

