Skip to content

Config file permissions warning is spurious on Windows/NTFS #1

@DTTerastar

Description

@DTTerastar

On Windows (NTFS), splunk-cli emits this warning on every command:

Warning: config file C:\Users\DATURNER.config\splunk-cli\config.toml
has permissions 0666; expected 0600.
The file may contain credentials. Run: chmod 600
C:\Users\DATURNER.config\splunk-cli\config.toml

Running chmod 600 has no effect — NTFS does not support Unix file
permissions, so the reported mode is always 0666 regardless of ACLs.

Expected behavior:
The permissions check should be skipped on Windows (or on filesystems
that don't support Unix permission bits).

Environment:

  • splunk-cli v2.0.2
  • Windows 11 Enterprise (NTFS)
  • Git Bash (MINGW64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions