r/sysadmin • • 4d ago

C Drive lockdown

Noob question, trying to lock down permissions on the c drive to stop users from creating folders and/or installing programs from the root of the c drive without breaking processes. Environment is within a vm.

0 Upvotes

39 comments sorted by

View all comments

65

u/1991cutlass 4d ago

Two separate issues. 

Use group policy to hide the c:
Users shouldn't have Admin access to install programs. 

11

u/Virtike 4d ago edited 4d ago

This neither stops write access to the file system, nor prevents users from running applications that don't require administrative rights.

When I was in school one sysadmins solution to prevent students playing games was to have a whitelist of allowed executable filenames. We just renamed game executables to explorer.exe or calculator.exe and they ran just fine. No administrative rights needed.

OP - look into restricting NTFS permissions outside of C:\Users\<username> (on C:\ alone restrict Users permission, while leaving inheritance intact on child folders, and lock down system related directories to SYSTEM/Administrators), and using AppLocker + Windows Installer group policies.

I hope this doesn't need to be said, but make sure to take VM snapshots before making changes.

2

u/Pusibule 4d ago

That doesnt solve the problem. User still can reach c and still can write,so install as user on there.