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: cron and network drives Date: Fri, 15 Aug 2003 14:16:41 -0700 Lines: 37 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; 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 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? -- 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/