X-Spam-Check-By: sourceware.org Date: Thu, 12 Oct 2006 16:24:59 -0400 From: David Arnstein 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.10i 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 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/