Sub topic 12
Windows Accounts, NTFS and Share Permissions
This chapter assumes you know basic Windows administration, can open an elevated command prompt or PowerShell, and understand the idea of least privilege from the previous chapter. It covers how Windows decides who can open a file, and the errors that cause most exam questions and help desk tickets on this topic.
Windows account types
Windows separates what a person can do by account type.
| Account type | What it can do | Typical use |
|---|---|---|
| Administrator | Install software, change system settings, manage all users, take ownership of files | IT staff, used only when needed |
| Standard user | Run installed apps, change own settings and files, cannot change system-wide settings | Everyday work |
| Guest | Temporary, very limited access, disabled by default | Short visits on a shared PC |
| Power user | Legacy group kept for compatibility with old apps, with few extra rights | Rarely used on modern Windows |
User Account Control (UAC) is a feature that asks an administrator to confirm before a task runs with elevated rights. Applying least privilege means giving people a standard account for daily work and a separate administrator account for admin tasks.
A local account exists only on one computer. A domain account is stored in Active Directory, the central directory service, and works on any computer joined to the domain. A Microsoft account is an online identity that can sign in to a personal PC.
Groups make permissions manageable
A group is a collection of accounts that share the same access. Admins assign permissions to groups, not to individual users. When someone changes jobs, you move them to a different group and their access changes everywhere at once.
Built-in local groups include Administrators, Users, Guests, and Remote Desktop Users. On a domain, you also see groups such as Domain Admins and Domain Users.
NTFS permissions
NTFS is the file system that Windows uses on its system drive. NTFS permissions apply to a file or folder whether the user is sitting at the computer or connecting over the network. They can be set only on NTFS volumes, not on FAT32 or exFAT.
The basic permission levels are:
- Full control: read, change, delete, and change permissions or ownership.
- Modify: read, write, and delete, but not change permissions.
- Read & execute: view files and run programs.
- List folder contents: see names in a folder (folders only).
- Read: view files and attributes.
- Write: create files and write data.
Inheritance
By default, a subfolder or file inherits permissions from its parent. Changes made on the parent flow down to the children. You can break inheritance on a child and set its own permissions. The (OI)(CI) flags in the command below mean object inherit and container inherit, so the permission applies to files and subfolders.
icacls C:\Finance /grant "Accounting:(OI)(CI)R"
icacls C:\FinanceThe first command gives the Accounting group read-only access to the folder and everything inside it. The second lists the resulting access control list (ACL), which is the list of entries that say who gets which access.
Combining permissions
Several rules decide the final result:
- A user's effective permission is the sum of the permissions given to the user and every group the user belongs to. If Anna is in Sales (Read) and Managers (Modify), she gets Modify.
- An explicit Deny overrides Allow. If one group denies access, the user is blocked even if another group allows it.
- Explicit permissions set on an object take priority over inherited ones.
Copying and moving
What happens to permissions when you move a file is a favorite exam topic.
| Action | Same NTFS volume | Different NTFS volume |
|---|---|---|
| Copy | Inherits destination permissions | Inherits destination permissions |
| Move | Keeps original permissions | Inherits destination permissions |
A move within a volume only changes the file's location pointer, so the permissions stay. A move between volumes is a copy followed by a delete, so the file takes on the new folder's permissions. Moving to a non-NTFS volume removes the permissions altogether.
Share permissions
A shared folder is made available to other computers over the network. Share permissions apply only to network access. They do not affect someone using the computer locally.
Share permissions are simpler: Read, Change, and Full control.
When a user connects over the network, Windows checks both the share permissions and the NTFS permissions. The most restrictive result wins.
For example, if the share gives Everyone Full control but NTFS gives Accounting only Read, a member of Accounting can only read through the network. If the share gives Read and NTFS gives Modify, the same user still gets only Read over the network, but Modify at the console.
A common practice is to set the share to a broad permission such as Change or Full control for authenticated users, and then control access precisely with NTFS permissions. This puts all the detail in one place.
Administrative shares
Windows creates hidden shares such as C$ and ADMIN$ that only administrators can use. A share name ending in $ is hidden from network browsing but not secure on its own. Permissions still protect it.
Ownership and taking control
Every file and folder has an owner, who can always change its permissions. Administrators can take ownership if the owner left or the permissions are broken. Taking ownership is how you recover a folder showing "Access denied" after an employee account is deleted.
Common errors
- Granting permissions to individuals: this is hard to audit. Use groups.
- Using Full control for everyone: this breaks least privilege. Start with Read and add only what is needed.
- Forgetting that share and NTFS combine: the user complains of read-only access even though NTFS allows writing. Check the share too.
- Overusing Deny: a Deny entry can lock out users unexpectedly. Prefer removing the Allow.
- Day-to-day use of an administrator account: malware that runs in that session gets administrator rights.
- Leaving the Guest account enabled: keep it disabled, and rename or disable the default Administrator account where policy allows.
Practice scenarios
Exercise
A user is in the Sales group (NTFS Read) and the Managers group (NTFS Modify) on a folder. A third group the user belongs to, Contractors, has Deny Write on the same folder. What can the user do on the folder?
Show answer
The user can read but not write. Allow permissions add up to Modify, but the explicit Deny Write overrides the Allow, so the user can read and list but cannot create or change files.
Exercise
A folder is shared with Read for the group Staff. The NTFS permission for Staff on that folder is Modify. A Staff member connects over the network. What access do they have, and what access do they have when signed in at the server?
Show answer
Over the network they have Read, because share and NTFS permissions combine and the more restrictive one wins. At the server console they have Modify, because share permissions do not apply to local access.
Exercise
You move a file from D:\Reports (Everyone: Read) to E:\Archive (Admins: Full control), where D: and E: are separate NTFS volumes. Which permissions does the file have afterward?
Show answer
It takes the permissions of E:\Archive (Admins: Full control). A move between volumes is a copy plus a delete, so the file inherits the destination folder's permissions.