Gemini CLI Skips System settings.json on Windows: Default ProgramData ACL Blocks It
Published · 5 min read
On a stock Windows install, Gemini CLI skips C:\ProgramData\gemini-cli\settings.json. The check walks every parent directory, and the default ACL on C:\ProgramData gives BUILTIN\Users create rights. Locking the gemini-cli folder alone does not help. You need to change the ACL on C:\ProgramData, or set GEMINI_CLI_SYSTEM_SETTINGS_PATH in every user's environment.
In this article
Gemini CLI prints a warning and ignores your system settings on Windows. The file is valid and the folder is restricted, so the cause is easy to look past. The blocker sits one level up.
Why does Gemini CLI skip the system settings file?
The warning reads:
Security Warning: Skipping system settings file 'C:\ProgramData\gemini-cli\settings.json': Parent directory 'c:\programdata' is insecure: Directory 'c:\programdata' is insecure. The following user groups have write permissions: BUILTIN\Users. To fix this, remove Write and Modify permissions for these groups from the directory's ACLs.
The check does not stop at the settings file and its own folder. It walks every ancestor of the path. On a stock Windows 10 22H2 install, C:\ProgramData grants BUILTIN\Users the (CI)(WD,AD,WEA,WA) rights, so any user can create a subfolder there. That is enough to fail the check, even when C:\ProgramData\gemini-cli itself is restricted to Administrators and SYSTEM.
How can I reproduce the skip?
The report used Windows 10 22H2 (10.0.19045), Node v26.13.1 and Gemini CLI 0.71.1 installed with npm install -g @google/gemini-cli.
As an administrator, create C:\ProgramData\gemini-cli\settings.json with valid settings, then lock the folder:
icacls C:\ProgramData\gemini-cli /inheritance:r /grant:r *S-1-5-18:(OI)(CI)F *S-1-5-32-544:(OI)(CI)F *S-1-5-32-545:(OI)(CI)RX /T
icacls C:\ProgramData\gemini-cli /setowner *S-1-5-32-544 /T
Run gemini -p "hello". The settings are ignored and the warning appears. icacls C:\ProgramData on the same machine shows the BUILTIN\Users entries, including (CI)(WD,AD,WEA,WA).
What does the code actually check?
Three locations in the 0.71.1 tag matter:
packages/core/src/utils/security.tslines 687 to 695 hold the ancestor loop. The Windows ACL script treatsCreateFilesorAppendDataheld by any non-admin identity as insecure.packages/cli/src/config/settings.tslines 1689 to 1705 call the check.packages/cli/src/config/settings.tsline 115 hardcodes theC:\ProgramData\gemini-clipath.
GEMINI_CLI_SYSTEM_SETTINGS_PATH can point the CLI at a different file. You have to set it in every user's environment, so it is awkward for fleet-wide deployment.
What can you do about it?
Two options, with different costs:
| Option | What it changes | Tradeoff |
|---|---|---|
Tighten C:\ProgramData | Removes Write, Modify and create rights for BUILTIN\Users on the parent directory | Touches a broadly used Windows directory, so test other software before rolling it out |
Set GEMINI_CLI_SYSTEM_SETTINGS_PATH | Moves the settings file to a path whose ancestors pass the check | Needs deployment to every user, and the new path is no longer the documented default |
Run icacls C:\ProgramData first and note which entries are present. After the change, run gemini -p "hello" again. The warning disappearing is the local signal that the settings were loaded.
FAQ
Does locking the gemini-cli folder fix the warning?
No. The check includes parent directories, and C:\ProgramData still fails.
Is this specific to Gemini CLI 0.71.1?
The report was filed against 0.71.1 with Node v26.13.1 on Windows 10 22H2, with source references at commit 60f8082. Check the current release before applying the workaround.
Can I just ignore the warning?
You can, but the system settings are not applied.
Where can I see the original report?
Google-gemini/gemini-cli issue 30474 contains the full reproduction and the exact ACL output.
For anyone comparing agent runtime costs while reviewing a setup like this, the current plans are at https://siapi.ai/pricing.