delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/03/11:03:05

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.6 required=5.0 tests=AWL,BAYES_00,FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <26628439.post@talk.nabble.com>
Date: Thu, 3 Dec 2009 08:02:46 -0800 (PST)
From: Almo <almo2001 AT yahoo DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem with bash script running under NT AUTHORITY\SYSTEM
In-Reply-To: <4B16EF31.60102@cygwin.com>
MIME-Version: 1.0
References: <26617039 DOT post AT talk DOT nabble DOT com> <4B16EE8D DOT 3070905 AT gmail DOT com> <26617812 DOT post AT talk DOT nabble DOT com> <4B16EF31 DOT 60102 AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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



Larry Hall (Cygwin) wrote:
> 
> Remember, SYSTEM is not you.  It doesn't have your environment or your
> access
> rights.  You need to be very careful and explicit with paths, files, and
> their
> permissions.  Whatever permissions and paths you have in your environment
> has
> to be replicated in some way for things to work like they do when you run
> them.
> 
> -- 
> Larry Hall                              http://www.rfk.com
> 

Ok, it's that SYSTEM running through cygwin has no access to the disk. I
thought it would work because other scripts I have work, but they don't
access the disk. mysqldump works because that command doesn't access the
disk, but tells a running process (mysql) to access the disk.

So someone else wrote the script to run in DOS, and we've dropped the idea
of scripting scheduled tasks with cygwin. Unless I can figure out how to get
SYSTEM access to the disk through it. :)

Thanks for your responses.
-- 
View this message in context: http://old.nabble.com/Problem-with-bash-script-running-under-NT-AUTHORITY%5CSYSTEM-tp26617039p26628439.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019