Skip to content

cat does not always respect Windows permissions #164

Description

@tropicsquirrel

Repro steps:

  • Ensure coreutils installed (as admin: winget install coreutils)
  • Two local user accounts, User A and User B
  • User B is a member of the Users group but NOT the Administrators group
  • In User A's home dir (e.g. C:\Users\UserA\) create a text file (test.txt) with known contents
  • Set permissions to allow all users to read and write the file: BUILTIN\Users:(R,W,D,WDAC,WO,DC)
  • From User B's account run type C:\Users\UserA\test.txt
    -- Expected: Access Denied (correct)
  • From User B's account run cat C:\Users\UserA\test.txt
    -- Expected: display contents of the file (incorrect)

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