Re: Help removing unresolved SIDs from NTFS permissions...



On Apr 26, 5:54 pm, SMFX <S...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Robocopy /COPYALL should maintain the permissions from one system to the next
if you're using Domain groups/users or Built-in groups. If you're using
Local groups or Local accounts, it won't work right.

However, recently Microsoft released a new version in the CACLS/XCACLS line
called "iCACLS" released with Windows 2003 SP2. With iCACLS there is the
option of /remove:{g|d} {SID} to remove any permissions granted or denied to
a specific SID.

Also, there is the option to dump all the permissions to a text file that
you can then reapply later. The "/save" option generates lines in a text
file like:
temp

D:(A;OICIID;FA;;;BA)(A;OICIID;FA;;;SY)(A;ID;FA;;;S-1-5-21-yoursid-goes-here­-aRID)(A;OICIIOID;GA;;;CO)(A;OICIID;0x1200a9;;;BU)(A;CIID;LC;;;BU)(A;CIID;D­C;;;BU)

You can then use this file, the "/restore" option with the "/substitute"
parameter to replace the SID's with the correct one.

-SMFX




Thanks for the info. This does involve only domain groups and users,
no local acct SIDs. But we aren't needing to replace SIDs. We are
needing to remove all that are not resolved to names.

The data that we are moving is all shared directories. Users have
left the company and their SID remains in the NTFS permissions. So
essentially, we are needing to clean up NTFS and then move all the
data, maintaining the permissions structure.

It would be better if we got an error than changing the permissions to
everyone/full. That could prove to be disasterous. grin

I'll keep digging...

Cappy


.



Relevant Pages

  • Re: Weird post ADMT Problem....accesing old file shares.
    ... Have you checked sid filtering, on an external trust this is enabled by ... Any chance you have conflicting permissions assigned to the ... I have two 2003 domains with an external trust. ... migrating groups from domain B to A. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Access is denied to this object
    ... sid wrote: ... I did not any issues with FileMon, but RegMon did find these two calls: ... Isaac Perez Moncho wrote: ... The call to Server.CreateObject failed while checking permissions. ...
    (microsoft.public.scripting.vbscript)
  • Re: ACLs and permissions viewed after Migrating from NT 4 domain... The twilight zone?
    ... And if I decomission the old NT4 domain this should ... (the little problem I have noticed is that if you give permissions to both ... > to the new w2k user's sid history. ... > it also checks the sid history when attempting to crack a sid to a user. ...
    (microsoft.public.win2000.security)
  • Re: Disaster Recovery Scenario Help
    ... Right...I understand the concept of the SID... ... assign them permissions, then what would be affected by the SID change other ... >>> promote the DR servers into DCs? ... In that case restoring DCs ...
    (microsoft.public.windows.server.active_directory)