public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Undo taking of ownership of LocalService & NetworkService file trees
@ 2011-07-03  3:29 Andrew Hancock
  2011-07-04 10:56 ` Kurt Franke
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Hancock @ 2011-07-03  3:29 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Undo taking of ownership of LocalService & NetworkService file trees
  2011-07-03  3:29 Undo taking of ownership of LocalService & NetworkService file trees Andrew Hancock
@ 2011-07-04 10:56 ` Kurt Franke
  2011-07-05  6:21   ` Andy
  0 siblings, 1 reply; 3+ messages in thread
From: Kurt Franke @ 2011-07-04 10:56 UTC (permalink / raw)
  To: cygwin

Andrew Hancock <andymhancock <at> gmail.com> writes:

... something deleted
> 
> 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?
> 
Andrew

just add the following entries to your /etc/passwd file:

LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19::
NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20::

this will allow you
chown LocalService ...
or the same with NetworkService

kf



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Undo taking of ownership of LocalService & NetworkService file trees
  2011-07-04 10:56 ` Kurt Franke
@ 2011-07-05  6:21   ` Andy
  0 siblings, 0 replies; 3+ messages in thread
From: Andy @ 2011-07-05  6:21 UTC (permalink / raw)
  To: cygwin

Kurt Franke <Kurt-Franke <at> web.de> writes:
> just add the following entries to your /etc/passwd file:
> 
> LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19::
> NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20::
> 
> this will allow you
> chown LocalService ...
> or the same with NetworkService

Thank you, Kurt.  That worked like a charm.

AH


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-05  6:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-03  3:29 Undo taking of ownership of LocalService & NetworkService file trees Andrew Hancock
2011-07-04 10:56 ` Kurt Franke
2011-07-05  6:21   ` Andy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).