Skip to content

cmd/go: creates executables with non-standard permissions on NTFS #22343

@steamonimo

Description

@steamonimo

What version of Go are you using (go version)?

1.9.1

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

Windows 2012 Server R2

What did you do?

Compiling source and creating executable

What did you expect to see?

At minimum I expect that the created executable will inherit the rights from the folder it was created in.
If the executable did exists before then it would be even better to preserve its current NTFS settings (that could be very different from the rest)

What did you see instead?

The created executable is currently breaking the inheritance of NTFS permissions. The resulting executable is restricted to the current user and system. In contrast the standard windows behaviour for newly created files is that the file will always inherit its permissions from its parent folder. With Windows 7 files that are moved will also inherit the permissions of the new target folder. With executables running in different and very restricted user accounts the current behaviour of breaking the inheritance is not helpful. In more general terms not respecting the current NTFS permissions is not recommendable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-Windows

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions