Windows Security ยท 2.8

๐Ÿ“ File Permissions (Windows)

Who can read, write, or run each fileโฑ ~2 min

File permissions control which users can access, modify, or execute files and folders. Misconfigured permissions are a common vulnerability โ€” giving 'Everyone Full Control' to sensitive folders is a serious security risk.

NTFS Permission Types

PermissionWhat It Allows
Full ControlRead, write, delete, change permissions, take ownership โ€” admin-level
ModifyRead, write, delete contents โ€” but cannot change permissions or ownership
Read & ExecuteOpen files and run programs โ€” no writing
List Folder ContentsSee file/folder names โ€” cannot open them
WriteCreate new files/folders, change contents โ€” but cannot delete
ReadView file contents and attributes only

Setting Permissions via GUI

  • โ€ขRight-click folder โ†’ Properties โ†’ Security tab
  • โ€ขClick Edit to change existing permissions, or Advanced for inheritance and ownership
  • โ€ขUse Add to add a new user/group with specific permissions
  • โ€ขDeny takes precedence over Allow โ€” use carefully

icacls โ€” Command Line Permissions

cmd
# View permissions on a folder
icacls C:\sensitive
# Grant user 'alice' Read & Execute on a folder and its contents
icacls C:\sensitive /grant alice:(OI)(CI)(RX)
# Remove all permissions for user 'badactor'
icacls C:\sensitive /remove badactor
# Reset to default inherited permissions
icacls C:\sensitive /reset
# Key permission flags:
# (F)=Full (M)=Modify (RX)=Read+Execute (R)=Read (W)=Write
# (OI)=Object Inherit (CI)=Container Inherit (I)=Inherited

Sharing Drives โ€” Disable Unnecessary Shares

  • โ€ขOpen fsmgmt.msc โ†’ Shares tab to see all shared folders
  • โ€ขRight-click an unauthorized share โ†’ Stop Sharing
  • โ€ขNever share an entire drive (C:) โ€” gives all network users full file access
  • โ€ขDefault admin shares (C$, ADMIN$, IPC$) are normal and should not be removed
๐Ÿง Quick Checkfirst try = +5 XP

Which command displays or modifies Windows file permissions (ACLs)?

โญ 0 XP๐Ÿ”ฅ 0 days