Using Cygwin in Windows 8, chmod 600 does not work as expected?
Problem
I'm trying to change the permissions to my key file in Cygwin 1.7.11. It has the permissions flags: Reports: mode of 'key.pem' changed from 0660 (rw-rw----) to 0600 (rw-------) However: still reports key.pem's permission flags are still: -rw-rw---- This reason why I'm asking is that ssh is complaining: Permissions 0660 for 'key.pem' are too open. when I try to ssh into my Amazon EC2 instance. Is this an issue with Cygwin & Windows 8 NTFS or am I missing something?
Error Output
chmod -c 600 key.pem
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Using Cygwin in Windows 8, chmod 600 does not work as expected?
I'm using Cygwin in the Win8CP, and I had the same issue. It's definitely a Cygwin bug, but there's a workaround: try running: The longer explanation is that, for some reason, Cygwin's and generation are putting the user's default/main group as . And you cannot change the permission of , so the for group has no effect. I didn't try repairing the / files myself, but I did do a (or, if you are on the Windows 8 pre-release, with the group name ). After that, you can do the and it'll work as expect…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix