Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

26
  • What if the owner is actually a group? In my case, I have a file owned by network service so Cygwin thinks the permission is 0770 instead of 0700.
    – hyspace
    Commented Nov 12, 2018 at 21:29
  • A file must be owned by a user and a group, not just a group. Group permissions are the 3rd octal [user is the 2nd] in a four octal specification and SSH keys cannot be group or others accessible
    – JW0914
    Commented Nov 13, 2018 at 3:16
  • That is the case of Unix. In Windows, network service can own a file and it is a group
    – hyspace
    Commented Nov 13, 2018 at 18:40
  • 21
    this should be correct answer. Thanks for CLI options. GUI always sucks in windows case. Commented Apr 30, 2019 at 20:51
  • 2
    On Windows10 I get Invalid parameter "/grant" I had to add :r with a space Icacls $Key /c /t /grant :r $env:UserName:F Commented Aug 19, 2021 at 9:08