Sub topic 11
Windows Accounts, NTFS and Share Permissions
This chapter assumes you know the least privilege principle and basic access control lists (ACLs). It also assumes you can open an elevated command prompt. Here you apply those ideas with Windows accounts, groups, NTFS permissions and share permissions.
Accounts and groups
Windows uses accounts to identify who is acting, and groups to assign rights to many accounts at once. The exam expects you to know these built-in types:
| Type | Purpose |
|---|---|
| Administrator | Full control of the system. Use it only when needed. |
| Standard user | Runs apps and changes personal settings. Cannot install system-wide software. |
| Guest | Very limited, temporary access. Disabled by default. |
| Power User | A legacy group kept for compatibility. Avoid it. |
Best practice is to give people standard accounts for daily work. Put users into groups, such as Accounting, and grant permissions to the group instead of to each person. This makes access easier to audit and change.
NTFS permissions
NTFS is the file system that stores permissions on each file and folder. These permissions apply whether the user is sitting at the computer or connecting over the network.
The common levels are Full control, Modify, Read & execute, List folder contents, Read and Write. Key behaviors:
- Permissions are inherited from the parent folder by default. You can turn inheritance off on a child.
- Permissions from several groups add up. A user in two groups gets the combined access.
- An explicit Deny overrides Allow.
- Copying a file inherits the permissions of the new folder. Moving a file within the same volume keeps its original permissions. Moving it to another volume makes it inherit the destination's permissions.
The following commands give the Accounting group read-only access, then show the result. (OI)(CI) makes the permission apply to files and subfolders, and R means read.
icacls C:\Finance /grant "Accounting:(OI)(CI)R"
icacls C:\FinanceShare permissions
A share makes a folder available over the network. Share permissions are Read, Change and Full Control. They apply only to network access, and they are set on the share itself, not on the files.
When both apply to a network user, Windows compares the share and NTFS results and the more restrictive one wins. For example, with Full Control on the share and Read on NTFS, the user can only read.
Local sign-ins skip the share layer, so only NTFS applies.
Common errors
- Granting permissions to individual users instead of groups.
- Forgetting that a Deny entry beats an Allow entry.
- Expecting a moved file to keep its permissions when it crosses volumes.
- Checking only NTFS when a user cannot reach a share, since the share permission may be the limit.
- Giving users Administrator rights to fix a permission problem. This breaks least privilege.
Exercise
A user is in the Sales group, which has Modify on NTFS for D:\Reports. The folder is shared with Read for Sales. What can the user do when connecting over the network, and what can they do when signed in at the computer?
Show answer
Over the network, the user can only read, because the more restrictive of share Read and NTFS Modify applies. At the computer, share permissions do not apply, so the user has Modify through NTFS.
Exercise
You move a file from C:\Finance to D:\Archive. Does it keep its NTFS permissions?
Show answer
No. Moving a file to a different volume makes it inherit the permissions of the destination folder. It would keep its permissions only if moved within the same volume.