resetting file permissions