Set key file permissions