Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: Re: cron and network drives Date: Wed, 20 Aug 2003 11:04:47 -0700 Lines: 24 Message-ID: References: <3F3D500B DOT 2030305 AT cygwin DOT com> <20030818181955 DOT GA22397 AT emcb DOT co DOT uk> <20030819080057 DOT GI3101 AT cygbert DOT vinschen DOT de> <20030820081509 DOT GA12392 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/