delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Thu, 12 Oct 2006 16:24:59 -0400 |
From: | David Arnstein <arnstein AT panix DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Permission to read anything from ls, cp, and find? |
Message-ID: | <20061012202458.GA24871@panix.com> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.5.10i |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
I have a bash shell script that I run every night using Windows task scheduler. The purpose of this script is to take an inventory of my PC, and to make copies of a few important files. The script calls ls, find, cp, and a few other ordinary Linux/Unix utilities. My problem is that the script does not have sufficient privilege to read every file on my PC. If I run the script as user Administrator, it fails to inventory certain files owned by SYSTEM. If I run the script as user SYSTEM, it fails to inventory many files owned by ordinary users. I suspect there is a solution to this problem. I use a commercial backup software product that certainly does not have this problem. How to list and copy every file on a PC using Cygwin utilities? -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |