change permissions for keys dir