delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/19/04:01:37

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
Date: Tue, 19 Aug 2003 10:00:57 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cron and network drives
Message-ID: <20030819080057.GI3101@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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>
Mime-Version: 1.0
In-Reply-To: <bhrg7d$i1e$1@sea.gmane.org>
User-Agent: Mutt/1.4.1i

On Mon, Aug 18, 2003 at 02:25:03PM -0700, Andrew DeFaria wrote:
> My understanding of accessing mount points (shares that have been 
> mounted to a drive letter) is that if you telnet or login (or 
> switchuser) in such a way as to have a passwordless login then mount 
> points are marked as unavailable. Further I understand that cron runs as 
> SYSTEM and switches user to the owner of the crontab. Thus a 
> passwordless login has occurred therefore mount points are unavailable. 
> Yet on hosta it works but on hostb it fails.

I don't pretend to understand how the SMB code in Windows works.  It
seems to be different on different machines.  On my machine `net use'
doesn't even bother to print any of the active shares when in a
passwordless session:

  $ net use
  New connections will not be remembered.

  There are no entries in the list.

But I can access shares from within a passwordless session if I create
the sharing inside of the session using `net use'.  Well, sometimes. And
it's a bit tricky, since it only works when not using drive letters (so
I have to use the //server/share path for accessing the share) and only
if I specify the full user name including domain or password server
respectively:

  $ net use \\\\server\\share password /user:SERVER_OR_DOMAIN\\corinna

*shrug*
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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