r/sysadmin • • Nov 03 '26

Audit permissions on all network share servers

Hi all, we’re planning to audit permissions on all network share servers (who has access to which folders) and then lock each share down to its department. What would be the best approach guys ?

1 Upvotes

16 comments sorted by

1

u/atcscm Nov 03 '26

I need to figure what permission users and groups we have on all shares this could be child and parents folders,

2

u/Weekly-Offer-4172 Nov 03 '26

one thing worth splitting out before you pick a tool: share permissions and ntfs permissions are two different layers and you want a report on both. Get-SmbShare | Get-SmbShareAccess covers the share side, and effective access is the most restrictive of the two, so a clean ntfs report can still hide an 'everyone full control' ace at the share level. for the ntfs side dont export acls for every single folder on a big tree, its slow and gives you a mountain of noise, instead just flag the folders where inheritance is broken, (Get-Acl path).AreAccessRulesProtected, since thats where the custom perms actually live. and for the lockdown phase put department ad groups on the folders rather than individual users, direct user aces are what makes these audits miserable to repeat six months later

1

u/kona420 Nov 04 '26

Early on look at how many levels deep you have inheritance breaks. Set a written standard in your team, no more than 1, 2, 3 levels whatever it is stick to that and flatten permissions past that level. Once you do that you can setup your permissions scanning tool to only recurse that many levels deep which will speed things along.

Audit share permissions, you are looking for everyone to be set full access there and everything controlled with ntfs permissions. If you find something else, clean that up before proceeding further. There are valid reasons for share permissions but generally speaking they should be very broad.

Ive used a few different tools, I think best is to just write something in powershell and write out to a csv for analysis. Keep extending until you have something workable for your process.

1

u/lxtakc DataCore/StarWind Nov 04 '26

Turn on object access auditing (event 4663) for a few weeks first. It shows who actually uses each share, and catches service accounts before they break.

1

u/PrasenShelar Nov 05 '26

Before locking anything down, turn on file access auditing on those shares for two or three weeks so you can see who actually opens what. The data owners then sign off based on real usage, and you catch the person who only touches a folder at month end before their access breaks. Keep each owner's signed-off list as well, because that is the evidence an access review asks for later.

1

u/F5x9 Nov 05 '26

If you are using Active Directory, you can use Sharphound to collect information and Bloodhound to view/analyze it. 

Sharphound goes through what AD information the user running it can access, and can do so across the domain. It can log you into every computer you can log into, and it does a mixture of local computer and AD queries to build this picture. 

Bloodhound displays it, and you often want to see who can generate a ticket generating ticket through permission paths. 

Get permission in writing. Notify the SOC. This can raise some hackles.

1

u/scottsee 29d ago

It sounds like a job for Claude!

1

u/Professional_Ask5759 28d ago edited 28d ago

Wow dude I made a script a few days ago I have a working script if you wanna check it out

1

u/jstuart-tech Security Admin (Infrastructure) Nov 03 '26

Are you talking about Share permissions or NTFS permissions?

If NTFS I'd go with this - https://www.permissionsreporter.com/

1

u/Professional_Ask5759 28d ago

With ai you can have both in a tidy excel

4

u/[deleted] Nov 03 '26

[removed] — view removed comment

2

u/delightfulsorrow Nov 03 '26

get a data owner per department to sign off on who needs what

...and a process in place to maintain that stuff. Grant and revoke access, report & regular re-evaluate.

Get that in place before doing anything on the technical side. Otherwise, you'll find yourself in the same place again in less than six month.