delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/07/02/23:29:20

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Sat, 2 Jul 2011 23:28:58 -0400
Message-ID: <CAGU3OVyc5_0HraY2AepSNVmJiJapQW1M4U8m6AYiDkJFxr2BrQ@mail.gmail.com>
Subject: Undo taking of ownership of LocalService & NetworkService file trees
From: Andrew Hancock <andymhancock AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

On a Windows XP system, I was using an administrator account to take
ownership of file trees belonging to deleted accounts, with the aim of
deleting those file trees.  Unfortunately, I issued a recursive chown
from "c:\Documents and Settings" rather than "c:\Documents and
Settings\DeletedUser".  Now the LocalService and NetworkService file
trees are also owned by Administrator.  I checked another XP system to
find that these file trees should belong to LOCAL SERVICE and NETWORK
SERVICE, respectively.  I can't seem to be able to use the Windows
method of assigning ownership back to these original owners because
they don't show up in the list of names that I am given to choose
from, presumably because they are not normal accounts.  (The panel for
doing this is accessed by pulling up a file/folder's Properties panel,
choosing Security tab, clicking Advanced to bring up Advanced Security
Settings panel, and choosing the Owner tab).

Would it suffice to use chown to force ownership back to the strings
"LOCAL SERVICE" and "NETWORK SERVICE"?  Or is something deeper
required to ensure complete and proper ownership transferral?

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