Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Remove ghost users entries from ACLs

Posted on 2007-07-31
Medium Priority
Last Modified: 2013-12-02

I'm looking at a Windows Server 2003 fileserver in my company at the moment and I noticed that there is a lot of directories which has ghost user entries in their ACL.
Very likely, some users had specific permissions to these directories but their user accounts have been deleted from Active Directory and they are now left as SID-etc... "ghost" users...

I would like to do a clean-up : is there any quick way to remove all the ghost entries in a path recursively ?
I would prefer not do it through the GUI in each folder since there seems to be a lot of individual folders with ghost entries in their ACLs.

Thanks a lot in advance.
Question by:Vorenus
LVL 86

Accepted Solution

oBdA earned 2000 total points
ID: 19604412
You can do that with subinacl; this should work (replace D:\Data with the root folder to process; try with a test folder first):
subinacl /subdirectories D:\Data\*.* /cleandeletedsidsfrom=%Userdomain%

Download details: SubInACL (SubInACL.exe)

And that's one of the reasons you don't give permissions to individual accounts, but using the AG(D)LP model instead: *A*ccounts are members of *G*lobal groups, global groups are members of (*D*omain) *L*ocal groups, *P*ermissions are assigned to local groups.
LVL 16

Expert Comment

ID: 19604438
Subinacl should be your tool of choice:



subinacl /subdirectories <folderpath>\*.* /cleandeletedsidsfrom=<domain>

Author Comment

ID: 19604547
Thanks, exactly what I needed !


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question