delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/19/07:31:53

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
From: "Chris January" <chris AT atomice DOT net>
To: "roger" <roger AT eskimo DOT com>, <cygwin AT cygwin DOT com>
Subject: RE: Cygwin's chmod +X
Date: Wed, 19 May 2004 12:31:47 +0100
Message-ID: <ICEBIHGCEJIPLNMBNCMKCECNGBAA.chris@atomice.net>
MIME-Version: 1.0
In-Reply-To: <1084910520.3901.35.camel@localhost3.localdomain>
X-IsSubscribed: yes

> I noticed while creating a bash script to backup my parents outlook &
> mydocuments folers, that WindowsXP does not recognize a "superuser" as
> being allowed access to a users folders!

You can only access a folder if you have been given permission (in the ACL)
unless you open it in backup mode. You can only change the ACL if you are
the owner of the folder. If you are an Administrator you can take ownership
of the folder and change the permissions. What you actually want to do is
change the owner of these folders to the Administrators group and then:
Before backing up:
cacls * /t /e /g yourusername:F
After backing up:
cacls * /t /e /r yourusername
or something like that...

In Local Security Policy you can change the default owner of objects created
by members of the Administrators group to Administrators by changing the
"System Object: Default owner for objects created by members of the
administrator group option" in Local Policies/Security Options.

Chris


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