Changed file permissions to minimum necessary