Skip to main content

File Shares

WithNow that AD and DHCPeverything is configured, Iit wantedis time to addmove onto adding a file serverserver. toSecurity thegroups, lab.GPOs Thisfor givesautomatic medrive amappings, way to testand folder permissions,permissions securityhere groups,I and drive mappings.come.

Some of the groups follow roles at my workplace.Now, I am usingmaking thethis labsort to test ideas for how access could be managedof in production.a common strucuture. There are many many different ways that you can setup file shares.

File server

Component Configuration
Server tw-fs01
Static IP address 10.50.0.12
DNS server 10.50.0.10
OS disk 60 GB
Data disk 80 GB, mounted as E:
Computer OU TW → Servers

Shares and folders

The main share is \\tw-fs01\Company. Inside it, I created some department folders like Accounting, Archive, HR, IT, Projects,etc. andInside Publicof those, I made some fake data so they aren't just empty folders.

I also created a separate share for Safety Training at E:\Safety Training.

I added sample files using PowerShell so I could test opening, editing, and deleting files with different accounts.

Permissions

For theShare Company share,permissions, I setwant theto structure it in a way that NTFS permissions manage access, so share permissions toare enabled for Full Access for Authenticated Users:Users.

Full

Some Controlgroups andI manage access through NTFS permissions.created:

Group Permission
Company-RO Read and execute
Company-RW Modify
HR Team Access to the HR folder
IT Team Access to the IT folder
Safety-RO Read and execute
Safety-RW Modify

For some restricted folders, I disabled inheritance and adjusted the permissions. Administrators and SYSTEM retain Full Control.Control perms.

Role groups

Now that the folder permissions are set, I wanted to try nesting groups. I created Shift Leads and Shift Supervisors under a Roles OU.OU, following some of the roles at work.

For example, I added Harry is into Shift Leads, andthen added Shift Leads is into Safety-RO. ThisHarry givesnow himgets read access to Safety Training withoutthrough addinghis him directly to the permission group.role.

This shouldmakes makethings onboardingeasier. easier,If sinceanother shift lead joins, I can assignadd them to Shift Leads and they get the access basedassigned onto someone'sthat role.

Drive mappings

Next, I used Group Policy to automatically map the drives based on group membership.

Drive Network path Group
Z: \\tw-fs01\Company Company-RO or Company-RW
H: \\tw-fs01\Company\HR HR Team
I: \\tw-fs01\Company\IT IT Team
S: \\tw-fs01\Safety Training Safety-RO or Safety-RW

TheI mappingswill arecover handledthe throughGPO Groupconfiguration Policy.on a separate page.

Testing it out

With everything configured, I testedsigned the read-only and modify permissions frominto tw-pc01, alongwith different accounts to test the permissions. Read-only users could open the files, while users with Modify could create, edit, and delete them.

The nested groups worked too! I did run into an issue with the nestedS: groupdrive membership.not appearing, but that ended up being a typo in the server name. Once I fixed that, the drive mapped.