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
| Permission | What It Allows |
|---|---|
| Full Control | Read, write, delete, change permissions, take ownership โ admin-level |
| Modify | Read, write, delete contents โ but cannot change permissions or ownership |
| Read & Execute | Open files and run programs โ no writing |
| List Folder Contents | See file/folder names โ cannot open them |
| Write | Create new files/folders, change contents โ but cannot delete |
| Read | View 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 foldericacls C:\sensitive # Grant user 'alice' Read & Execute on a folder and its contentsicacls C:\sensitive /grant alice:(OI)(CI)(RX) # Remove all permissions for user 'badactor'icacls C:\sensitive /remove badactor # Reset to default inherited permissionsicacls C:\sensitive /reset # Key permission flags:# (F)=Full (M)=Modify (RX)=Read+Execute (R)=Read (W)=Write# (OI)=Object Inherit (CI)=Container Inherit (I)=InheritedSharing 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)?
๐ฎ Practice what you learned
โญ 0 XP๐ฅ 0 days