cli icon indicating copy to clipboard operation
cli copied to clipboard

[nextercism] Ensure correct permissions on configuration files

Open ioistired opened this issue 9 years ago • 2 comments

Create ~/.exercism.json with 600 permissions (i.e. only owner can read/write), and if the user changes this, refuse to run.

ioistired avatar Oct 16 '17 03:10 ioistired

That sounds reasonable to me.

I won't be making the change until we make a major release as this would be a breaking change. The next major release is currently being developed in the nextercism branch. It would make sense to discuss this change in the context of that release.

kytrinyx avatar Oct 22 '17 13:10 kytrinyx

I think the right move here is to change the CLI so that it writes the files with the correct permissions, but that it won't bail if the permissions are different. That way it's not a breaking change (and it's really up to them if people want to change the permissions on a file).

kytrinyx avatar Aug 05 '18 18:08 kytrinyx