Granting Full Control Permissions to a Folder for a Local User without Changing Ownership (Command Line)

Abstract: Grant full control permissions to a local user on a Windows folder using icacls without changing the directory ownership.

Created: 2026-10-17 by

To grant a local user full control permissions to a folder without changing ownership, use the icacls command with the /grant flag and the (F) permission identifier. This method modifies the Access Control List (ACL) entries while preserving the existing owner of the directory, ensuring that administrative rights or other specific ownership attributes remain intact.

Understanding icacls Syntax

The icacls utility is the standard command-line tool for displaying or modifying Access Control Lists (ACLs) in Windows. It provides a robust way to manage security descriptors for files and directories. When working with permissions, it is crucial to distinguish between ownership and access rights. Ownership determines who can change permissions, while access rights determine what actions a user can perform on the object. By using icacls, you can add new permission entries without invoking the takeown command, which would alter the owner field in the security descriptor. The basic syntax for granting permissions is: icacls <Path> /grant <User>:(<Permissions>) Here, <Path> is the target directory, <User> is the local username, and <Permissions> defines the level of access. The (F) parameter stands for Full Control, which includes Read, Write, Modify, and Change Permissions rights. If you need to handle multiple users or complex scenarios, you can append additional /grant clauses.

Executing the Command

To apply these settings, open the Command Prompt as an Administrator. Administrative privileges are required because modifying ACLs on system folders or directories owned by TrustedInstaller requires elevated rights. Even if you are not changing ownership, the system may block permission modifications if the current process lacks sufficient authority. Navigate to the directory you wish to modify or provide the full path directly in the command. For example, to grant full control to a user named "JohnDoe" on the folder "C:\Projects", run:
icacls "C:\Projects" /grant JohnDoe:F
This command adds an explicit ACE (Access Control Entry) for JohnDoe. Note that if the user already has permissions, this command will update them. If you want to ensure no previous conflicting permissions interfere, you might consider removing existing entries first, but this is often unnecessary and risky if done incorrectly. Always test with a non-critical directory first. If the username contains spaces, enclose it in quotes:
icacls "C:\Projects" /grant "John Doe":F
For local users, the format is simply the username. If you were dealing with domain users, you would prefix it with the domain name, such as DOMAIN\JohnDoe. Since the requirement specifies a local user, the plain username suffices.

Verifying the Changes

After executing the grant command, verify that the permissions were applied correctly. Use the following command to view the current ACLs:
icacls "C:\Projects"
Look for the line containing the username followed by (F). This confirms that the user now has Full Control. The output should also show the original owner, ensuring that ownership was not changed. If the owner field displays a different entity than before, something else modified the directory, but icacls /grant itself does not touch the owner field.

Handling Inheritance and Subdirectories

By default, icacls applies permissions only to the specified folder unless you include the /t switch. The /t flag means "recurse," applying the permission to all subdirectories and files within the target folder. This is often necessary when you want a user to have full control over an entire project structure, not just the root directory.
icacls "C:\Projects" /grant JohnDoe:F /t
Be cautious when using /t on large directories, as it can take significant time to process. Additionally, inherited permissions from parent directories may interact with these new explicit entries. Windows resolves conflicts based on a precedence order: explicit deny takes priority over explicit allow, which takes priority over inherited allow. Therefore, adding an explicit full control entry usually overrides inherited restrictions, but it is good practice to audit the final state. If you encounter issues where the user still cannot access the folder, check for explicit Deny permissions elsewhere in the ACL chain. These can override the newly granted Full Control rights. You can remove specific deny entries using /remove:d if necessary, though this should be done sparingly. For more advanced troubleshooting, such as analyzing network connections related to file sharing, you might refer to guides on Understanding NETSTAT Output: Admin Rights Required, although this is tangential to local permission management.

Common Pitfalls

One common error is forgetting to run the command prompt as Administrator. Without elevation, you may receive an "Access Denied" message even if you are the owner. Another pitfall is misidentifying the user. Ensure the username matches exactly how it appears in the Local Users and Groups manager. Typos in the username will result in the command failing silently or creating a permission entry for a non-existent account, which is useless. Also, remember that icacls does not modify the "Take Ownership" tab in the GUI properties dialog directly; it modifies the underlying security descriptor. The GUI reflects these changes immediately upon refresh. If you need to automate this across many machines, scripting this command into a login script or Group Policy Object is efficient. For batch processing outputs, understanding how to capture return codes is useful, similar to techniques described in Batch Script: Getting Output Value using Key, allowing you to log successes or failures of permission changes.

Frequently Asked Questions

Does this command change the folder owner?

No, the icacls /grant command only modifies the Access Control List entries. It does not alter the "Owner" field in the security descriptor. To change ownership, you must use the separate takeown command.

How do I remove full control permissions for a user?

You can remove specific permissions using the /remove flag. For example, icacls "C:\Projects" /remove JohnDoe will delete the explicit ACE for that user, reverting their access to inherited permissions.

Can I grant full control to a group instead of a user?

Yes, replace the username with the group name. For instance, icacls "C:\Projects" /grant Administrators:F grants full control to the built-in Administrators group.

What if I get an "Access Denied" error?

Ensure you are running the Command Prompt with administrative privileges. Additionally, verify that your own account has the "Change Permissions" right on the target folder, which is typically part of Full Control or Backup Operators membership.

How do I apply these permissions recursively?

Add the /t switch to the command. This ensures that the permission entry is applied to the target folder, all subfolders, and all files within them.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More